0

I am using jfreechart library to plot line chart which changes dynamically, so I turned off axes autoscale. After zooming in axes autoscale remains turned off. The problem is when I zoom out, axes autoscale becomes on and it slows down my program (because it changes dynamically). How should I add listener, to turn off axes autoscale after zooming out?

lnk
  • 593
  • 2
  • 11
  • 27

1 Answers1

1

This example invokes restoreAutoBounds() in an ActionListener, and you can use the click-and-drag-left gesture to the same effect.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045