Hi.
Is there a way to re- set the range of the Y value axis after the chart has already been created and displayed? I want to change the range of the axis depending on the values which need to be displayed. Should I simply call setRange() and then validate() afterwards?
Thank you.
setRange( ) dynamically
-
- Posts: 8
- Joined: Tue Mar 18, 2014 2:00 pm
- antibot: No, of course not.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: setRange( ) dynamically
A all to setRange is enough. The chart will redraw itself automatically. There is no need to validate() anything.jfreechart175371 wrote:Should I simply call setRange() and then validate() afterwards?