Krysalis jCharts
 
  Font size:      
 

Rounding

PDF
PDF

Rounding

By default, the Y-Axis rounds to the nearest whole number. This can be changed by using a method on the DataAxisProperties Object.

Warning
Note: when using a user defined scale, be aware your increment will be rounded by this rounding factor.

The following example sets the y-axis to round to the nearst 1/100 or 10 to the -2'nd power.

DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties();
dataAxisProperties.setRoundToNearest( -2 ); 
			
Axis Rounding


Valid HTML 4.01!Valid CSS!