setRange( ) dynamically

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jfreechart175371
Posts: 8
Joined: Tue Mar 18, 2014 2:00 pm
antibot: No, of course not.

setRange( ) dynamically

Post by jfreechart175371 » Sun Mar 22, 2015 12:27 pm

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.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: setRange( ) dynamically

Post by paradoxoff » Sun Mar 22, 2015 8:30 pm

jfreechart175371 wrote:Should I simply call setRange() and then validate() afterwards?
A all to setRange is enough. The chart will redraw itself automatically. There is no need to validate() anything.

Locked