Jfree chart - Include pan functionality in browser

235 Views Asked by At

Hi I am trying to make a dynamic stacked area and time series chart using jfreechart. I want to display it on a browser. Also, I want the pan and zoom using mouse wheel functionality. Any idea, how this can be done? Is it even possible ?

Or is there any other library by which I can make the chart?

1

There are 1 best solutions below

11
On
  • In order to zoom in your chart, you need to implement Zoomable interface.
  • In order to pan your chart, you need to implement Pannable interface.

Rather than using JFreeChart, you can use the new Java way to draw charts JavaFX. Check this tutorials Using JavaFX Charts.