Tag Archives: Zoom

Zoom in/out

You can easily zoom in a graph using set_cursor() function and set the property “zoom” to true. It requires non-renderer plugincursor“.

Click an area on the graph, then drag the mouse to zoom in. Double click anywhere to reset zoom in level. Zooming also works multiple axes.

1
2
3
4
$pc->add_plugins(array('cursor'));
$pc->set_cursor(array(
        'show'=>true,
        'zoom'=>true));

Live demo

Complete cursor plugin reference can be found at http://www.jqplot.com/docs/files/plugins/jqplot-cursor-js.html

Top

Clicky