Edit this page

categoryAxis.autoBaseUnitSteps Object

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.milliseconds Array (default: [1, 100, 100])

The milliseconds unit steps.

categoryAxis.autoBaseUnitSteps.seconds Array (default: [1, 2, 5, 15, 30])

The seconds unit steps.

categoryAxis.autoBaseUnitSteps.minutes Array (default: [1, 2, 5, 15, 30])

The minutes unit steps.

categoryAxis.autoBaseUnitSteps.hours Array (default: [1, 2, 3])

The hours unit steps.

categoryAxis.autoBaseUnitSteps.days Array (default: [1, 2, 3])

The days unit steps.

categoryAxis.autoBaseUnitSteps.weeks Array (default: [1, 2])

The weeks unit steps.

categoryAxis.autoBaseUnitSteps.months Array (default: [1, 2, 3, 6])

The months unit steps.

categoryAxis.autoBaseUnitSteps.years Array (default: [1, 2, 3, 5, 10, 25, 50])

The years unit steps.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy