Zoom in/out on dynamic TimeSeriesGraphs breaks dynamic scrol

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

Zoom in/out on dynamic TimeSeriesGraphs breaks dynamic scrol

Post by James Johnson » Thu Nov 07, 2002 5:38 pm

Hi,

I'm using the TimeSeriesGraph to plot dynamically flowing data, and have run into a problem. Whenever I attempt a right-click zoom in on a specific point on the graph, the graph will zoom in correctly, but the graph will no longer scroll. And then when I attempt to zoom out from the same point, to get back to the original zoom distance, the graph still does not scroll. Although, when I attempt to auto-range both axis', the graph will resume scrolling.

Is there any way to allow for a TimeSeriesGraph to continue it's dynamic flow while zoomed in or out?

Thank you for your time.

Regards,
James

Dave Gilbert

Re: Zoom in/out on dynamic TimeSeriesGraphs breaks dynamic s

Post by Dave Gilbert » Fri Nov 08, 2002 12:23 am

Hi James,

I know the problem you are describing, but I'm not sure how to fix it yet. The "scrolling" effect comes in because the axis range is auto-calculated each time the dataset is updated. But zooming is implemented by setting the axis range (which turns off the auto-range calculation). So at the moment you can only have one or the other...suggestions for a solution appreciated.

Regards,

DG

Locked