NumberAxis

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

NumberAxis

Post by Dennis » Tue Mar 12, 2002 10:34 pm

Hi,David
The VerticalNumberAxis.setMaximumAxisValue() and VerticalNumberAxis.setMinimumAxisValue() has no effect when you create OverlaidChart.

Here is sample from JFreeChartDemo:


private void displayOverlaidChart()
{
................................
NumberAxis valueAxis = new VerticalNumberAxis(yAxisLabel);
valueAxis.setAutoRange(false);
valueAxis.setMaximumAxisValue(100.0);
valueAxis.setMinimumAxisValue(50.0);
............................
}


I also tried valueAxis.setAxisRange(50.0,100.0), but still no effect.

Looks like it always: valueAxis.setAutoRange(true);

David Gilbert

Re: NumberAxis

Post by David Gilbert » Wed Mar 13, 2002 10:25 am

Hi Dennis,

Thanks for the report. I'll take a look...but the overlaid plot classes were written by another developer, so it might take me some time to spot the problem.

Regards,

DG.

Locked