i was creating a new plot now, and i made use of the verticalNumberAxis in it, but i dont know where i can set the max&min range of this axis in the jfreechart package.
thanx
create a new plot
RE: create a new plot
Hi Jackie,
The Javadoc page for VerticalNumberAxis is a good place to look, as it includes a list of the methods that VerticalNumberAxis inherits from NumberAxis (and ValueAxis before that).
The methods you need are:
setMinimumAxisValue(Number) and setMaximumAxisValue(Number).
If I recall correctly, you also need to call setAutoRange(false) BEFORE you set the minimum and maximum axis values. I'm going to change the code so that this isn't necessary as it has caused confusion for a few people, understandably.
Hope that helps...
DG.
The Javadoc page for VerticalNumberAxis is a good place to look, as it includes a list of the methods that VerticalNumberAxis inherits from NumberAxis (and ValueAxis before that).
The methods you need are:
setMinimumAxisValue(Number) and setMaximumAxisValue(Number).
If I recall correctly, you also need to call setAutoRange(false) BEFORE you set the minimum and maximum axis values. I'm going to change the code so that this isn't necessary as it has caused confusion for a few people, understandably.
Hope that helps...
DG.