Page 1 of 1

How can I get the maximal visible value

Posted: Fri Nov 28, 2003 3:12 pm
by Guest
Using the getMaximumAxisValue() will tell me the maximum value of the series, but not the maximal value actual visible on screen.

I want to resize my y-axis on depending on the values displayed. I wrote a listener, which will do this, if the last value is 70% of the maximal visible value. But I cannot find a way to get this max. visible value

Any idea?

Posted: Fri Mar 11, 2005 1:29 pm
by s.manchikalapudi
Better to use tooltiptext
Collection = chartPanel.getChartRenderingInfo().getEntityCillection.getEntities(new Entiti{0])
then, Entity = collection.get(i);
then gettooltiptext from entity.
and then format that string and get whats value you want
for solve your problem

Posted: Sat Apr 16, 2005 6:45 pm
by Lenox
There was an interesting method proposed by Fujiko in the following memo :
http://www.jfree.org/phpBB2/viewtopic.p ... &&start=15

I tried for me and it works !