mercredi 28 mai 2014

Chart Axis Adjust By Major Unit

In working with the sencha touch charting I have learned that the min, max, and tick steps are generated by the library looking at the data set. If for example you have data ranging from 1 to 95 I will get an axis that ranges for 1 to 95, even though my tick steps may be in 10. The result is the final tick is 5 instead of 10, and thus you you have a chart axis which reads ... 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95 instead of 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.

There in a configuration in the chart/axis/Axis class called adjustMaximumByMajorUnit which is a boolean, and I assume will tell the library to have a full ticket on the max instead of capping based on the data set max.


Is there anyone who has come across this, or a workaround to get the library to behave in a way that would line up with that config?





Aucun commentaire:

Enregistrer un commentaire