Copyright 2003, J4L
Components (http://www.java4less.com)
Go bak to contents
The following section describes how the maximum and minimum values of the scale are calculated. The examples refer to the Y-Axis, however the same parameters are also available for the X and Y2 axis.
If you want to plot the following values:
10, 41 , 48 , 39, 36 ,34 , 49
you can use the following way in order to calculate the maximum and minimum values of the axis:
Parameters
|
Description
|
Equivalent Java[TM] class/property
|
YSCALE_MIN=0 |
Minimum value of the scale |
xaxis.scale.min |
the result will be:
Parameters
|
Description
|
Equivalent Java[TM] class/property
|
YSCALE_EXACT_MAX=true |
Take the min. and max. values from the list of preferred values. |
yaxis.scale.exactMaxValue |
RChart will use one of the values from the list you provided. This list must be sorted in ascending order and RChart will always select the first value that meets the condition:
Parameters
|
Description
|
Equivalent Java[TM] class/property
|
YSCALE_MIN=0 |
Minimum is 0 |
yaxis.scale.min |
the following additional parameters are needed for logarithmic scales:
Note: logarithmic scales do not accept negative values.
Example 1:
A base of 10 means that the distance between 1 and 10 will be the same as the
distance between 10 and 100, 100 and 1000 ...
Parameters
|
Description
|
Equivalent Java[TM] class/property
|
TICK_LOG_INTERVALY=true |
Ticks show not be placed at fixed intervals bu
using logaritmic scale. |
YAxis.logarithmicIntervals=true; |
Example 2:
The default base is 2. This means, the distance between 1 and 2 will be the same as the distance between 2 and 4, 4 and 8..
Parameters
|
Description
|
Equivalent Java[TM] class/property
|
TICK_LOG_INTERVALY=true |
Ticks show not be placed at fixed intervals bu
using logaritmic scale. |
YAxis.logarithmicIntervals=true; |