Limit zoom out?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
grimlock
Posts: 22
Joined: Wed Jul 14, 2004 7:50 am

Limit zoom out?

Post by grimlock » Tue Sep 29, 2009 6:43 am

We've had issues when a user has continually used the mouse wheel to zoom out of a Time Series Chart until the application has 'frozen'. Running JConsole on this 'frozen' application reveals that the Chart is actually painting on the EDT but taking a very long time to do so.

Is there a way to limit the amount of zoom that can be performed on a chart to prevent users from 'crashing' the application?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Limit zoom out?

Post by david.gilbert » Tue Sep 29, 2009 9:16 pm

No, but that would be a good bug to fix.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Ted Hill
Posts: 54
Joined: Mon Jun 12, 2006 7:39 pm

Re: Limit zoom out?

Post by Ted Hill » Wed Oct 07, 2009 2:40 pm

I am experiencing a similar problem.

I'm using a line chart backed by a CategoryDataset.

The chart is zoomable using the mouse.

If the user keeps zooming in, eventually the app will freeze up.

Is there some method to override where the current axis values could be evaluated and further zooming could be prevented?

Thanks.
Ted Hill

Locked