responsively updating x axis ticks