How can I re-set ticks’s formatString after a zoom operation?
I’m using $.jqplot.DateAxisRenderer plugin on “xaxis” with formatString = "%d.%m", but when I zoom I’d like to change it in something like %d.%m %H:%M:%S according to new min and max values.
I think I have something for you.
Please see the sample for code details.
The whole problem comes down to overwriting the
DateTickFormatterwith this code:It will return different format depending on the number of visible days. Play with the code and see what happens when you zoom.