update the scale domains within the _draw function