Axis is made of:
- The line
- The ticks (small and big)
- The labels (text displayed next to the big ticks)
- Grid
- Scale
Example:
// create 2 axis with scale and orientation
com.java4less.rchart.Axis XAxis=new Axis(Axis.HORIZONTAL,new Scale());
com.java4less.rchart.Axis YAxis=new Axis(Axis.VERTICAL,new Scale());
// set scale values
XAxis.scale.min=0;
YAxis.scale.min=0;
// set the tick configuration
Axis.scaleTickInterval=1;
XAxis.scaleTickInterval=1;
// add user defined labels
String[] lbls={"June","July","Aug.","Sept.","Oct.","Nov.","Dec."};
XAxis.tickLabels=lbls;
if true, RChart will calculate the max value of the scale using the preferred min/max values list
default value is true for Y axis and false for X axis.