Question

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.

Was it helpful?

Solution

If you create plot with code:

plot = $.jqplot(...)

you can invoke:

plot.axes.xaxis.u2p(value)

on any axis

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top