Fix DOM ordering for redrawn lines/areas

Fixes an issue whereby redrawing line charts would cause the axes to appear on top of the line/area. It was only an obvious problem when setting `x_extended_ticks`, `y_extended_ticks` options to true.