How can I get the maximal visible value

Discussion about JFreeChart related to stockmarket charts.
Locked
Guest

How can I get the maximal visible value

Post by Guest » Fri Nov 28, 2003 3:12 pm

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?

s.manchikalapudi
Posts: 11
Joined: Sun Feb 06, 2005 2:05 pm
Location: Hyderabad, India
Contact:

Post by s.manchikalapudi » Fri Mar 11, 2005 1:29 pm

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
SAMBASIVARAO MANCHIKALAPUDI

Lenox

Post by Lenox » Sat Apr 16, 2005 6:45 pm

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 !

Locked