Zoom In and Zoom Out feature

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Girish

Zoom In and Zoom Out feature

Post by Girish » Sun Oct 06, 2002 11:51 am

Hi,
Could somebody explain me how the Zoom in and Zoom out feature works on the charts. I tried there are some changes happening on the charts, but I am not able to understand how the changes happen.

Please tell me if I can find some reading material atleast to understand this feature.

Regards
Girish

David Gilbert

Re: Zoom In and Zoom Out feature

Post by David Gilbert » Mon Oct 07, 2002 2:37 pm

Hi Girish,

Do you mean the zoom options in the popup menu? All these are doing is modifying the lower and upper bounds on one or both of the axes and redrawing the chart. The new range (zoomed in or out) is centered around the last point clicked on (where the popup menu appeared).

There's no documentation about this yet, your best bet (for now) is to follow the code from the actionPerformed(...) method in the ChartPanel class.

Regards,

DG.

Locked