Reputation: 85
I want to test jqPlot zoom automaticaly. I need to click one point and move mouse to other. My plot looks similar to http://www.jqplot.com/tests/zooming.php but zooming is only possible for x axis.
So I need start and stop x coordinates to perform mouse actions. Is there any function in jqplot that can convert time (which I show on x axis) to x coordinate? I am using $.jqplot.DateAxisRenderer for x axis.
Upvotes: 1
Views: 257
Reputation: 85
If you create plot with code:
plot = $.jqplot(...)
you can invoke:
plot.axes.xaxis.u2p(value)
on any axis
Upvotes: 1