Hi,
I am using a simple NumberAxis(for range) for creating my graph. The issue is that when auto scaling is on, the alignment of units is not always consistent. The axis doesnt always start at zero. In addition, the lowest value used for scaling the axis is not always rendered. Is there a way to configure the alignment of units?
2. Do we have a documentation on how to use the zoom features in chart panel? I've got a license for the developer guide but it doesnt provide any.
-Rambabu
Alignment of units on the axis
Re: Alignment of units on the axis
d_rambabu wrote:Hi,
I am using a simple NumberAxis(for range) for creating my graph. The issue is that when auto scaling is on, the alignment of units is not always consistent. The axis doesnt always start at zero. In addition, the lowest value used for scaling the axis is not always rendered. Is there a way to configure the alignment of units?
2. Do we have a documentation on how to use the zoom features in chart panel? I've got a license for the developer guide but it doesnt provide any.
-Rambabu
1.
2. Zooming is implemented using
Code: Select all
public void setAutoRangeIncludesZero(boolean flag)
Code: Select all
public void setRange(double lower, double upper)
If you wish to leave some empty space on the axis when it is auto calculated then you can use these methods to determine the amount
Code: Select all
public void setLowerMargin(double margin)
public void setUpperMargin(double margin)