distance in lineChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Cristiano

distance in lineChart

Post by Cristiano » Thu Aug 08, 2002 8:42 pm

how can i to add the distance between the higer line and the edge in some linechart ?

i know how to do this for between lateral begin and the start of information line : setIntroGapPercent(double x) to instance of CategoryPlot class.

David Gilbert

Re: distance in lineChart

Post by David Gilbert » Thu Aug 08, 2002 11:15 pm

This is controlled with the setUpperMargin(double) method in the NumberAxis class (but now moved to ValueAxis in CVS). Also in CVS, a bug has been fixed where changing the margin didn't result in the data range updating. I should have 0.9.3 released some time during this month, including the changes and bug fixes.

Regards,

DG.

Cristiano

Re: distance in lineChart

Post by Cristiano » Mon Aug 12, 2002 7:23 pm

ok, but when i use this:
"valueAxisY.setMaximumAxisValue(Double.parseDouble(newHighTime));"
the code: "setUpperMargin(double)" method in the NumberAxis don't work it !

i need to use:
valueAxisY.setMaximumAxisValue(Double.parseDouble(newHighTime));
and i need more distance between the higer line and the edge.

what can i do ?

Locked