remove unnecessary `g` from chart.