bar chart with single data value

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

bar chart with single data value

Post by Manfred Hellar » Tue May 07, 2002 2:30 pm

hi,

i have to questions:

1.
i wanna create a bar chart with only on value. how can i overrule the horizontal automatic range? my single bar is blown up over the whole horizontal axis.

2.
how can i label my axis with icons? is it possible to draw axis with arrows at their endpoints?

thanx
manfred

David Gilbert

Re: bar chart with single data value

Post by David Gilbert » Thu May 09, 2002 4:46 pm

Hi Manfred,

You can set a fixed axis range as follows:

CategoryPlot myPlot = myChart.getCategoryPlot();
ValueAxis rangeAxis = myPlot.getRangeAxis();
rangeAxis.setAxisRange(0.0, 100.0);

You can't use icons to label the axis and there is no support for arrows at the end of axes yet.

Regards,

DG.

Locked