Autorange not working in Waterfall chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
geindsys
Posts: 72
Joined: Wed Oct 08, 2003 7:05 pm

Autorange not working in Waterfall chart

Post by geindsys » Fri Oct 17, 2003 12:58 pm

I am using the waterfall chart code mentioned in one of the earlier posts in this forum.

Problem 1
For my data, the autorange method is not working - last 2 bars and their item labels are cut off. Also, tooltips are not working.

The data I am using is :
Lows :
0.0, -21.4, 11,57, 3.51, 12.36, 3.39, 38.69, 43.31, -29.59, 0.0
Highs :
-21.4, 11,57, 3.51, 12.36, 3.39, 38.69, 43.31, -29.59, -35.30, -35.30

The last 2 bars and their item labels are being cut off and none of the toltips are working. I have changed only the data and nothing else in that code.

Problem 2
Is there any way to set the tick units size automatically based on the data ? Currently it is set in the following line manually :

Code: Select all

yAxis.setTickUnit(new NumberTickUnit(1000, formatter));
Problem 3
In case the data is too small, (< 0.50), then the bar is not being drawn at all and so neither are the tooltips appearing.

Locked