categoryAxis.autoBaseUnitStepsObject
The discrete categoryAxis.baseUnitStep values when either categoryAxis.baseUnit is set to "fit" or categoryAxis.baseUnitStep is set to "auto".
The axis will try to divide the active period into successively larger intervals. It will start from x-second intervals, where x is picked from the autoBaseUnitSteps.seconds array. Then it will move to minutes, seconds and so on. This will continue until the number of intervals is less than maxDateGroups.
Example - set category axis auto base unit steps
<div id="chart"></div>
<script>
$("#chart").kendoChart({
categoryAxis: {
categories: [
new Date("2012/02/01 00:00:00"),
new Date("2012/02/02 00:00:00"),
new Date("2012/02/20 00:00:00")
],
baseUnitStep: "auto",
autoBaseUnitSteps: {
days: [3]
}
}
});
</script>
categoryAxis.autoBaseUnitSteps.millisecondsArray
(default: [1, 100, 100])
The milliseconds unit steps.
categoryAxis.autoBaseUnitSteps.secondsArray
(default: [1, 2, 5, 15, 30])
The seconds unit steps.
categoryAxis.autoBaseUnitSteps.minutesArray
(default: [1, 2, 5, 15, 30])
The minutes unit steps.
categoryAxis.autoBaseUnitSteps.hoursArray
(default: [1, 2, 3])
The hours unit steps.
categoryAxis.autoBaseUnitSteps.daysArray
(default: [1, 2, 3])
The days unit steps.
categoryAxis.autoBaseUnitSteps.weeksArray
(default: [1, 2])
The weeks unit steps.
categoryAxis.autoBaseUnitSteps.monthsArray
(default: [1, 2, 3, 6])
The months unit steps.
categoryAxis.autoBaseUnitSteps.yearsArray
(default: [1, 2, 3, 5, 10, 25, 50])
The years unit steps.
In this article