setUpperMargin dosen't work when the values are the same

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
alemjann
Posts: 31
Joined: Wed Aug 06, 2003 6:51 am
Location: Beijing

setUpperMargin dosen't work when the values are the same

Post by alemjann » Wed Nov 05, 2003 6:50 am

I use

Code: Select all

(NumberAxis)categoryplot.getRangeAxis().setUpperMargin();
in line chart. it works well. But when there is only one line in the chart and the values of all points of the line are equal, the line and the value label goes out of the top of the rangeAxis and been cut.
Help!

Locked