categoryAxis.maxDivisionsNumber

The maximum number of ticks and labels to display. Applicabable for date category axis.

This option is ignored in all other cases.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    categoryAxis: {
        type: "date",
        maxDivisions: 3,
        categories: [
            new Date("2023/01/01"),
            new Date("2023/02/01"),
            new Date("2023/03/01"),
            new Date("2023/04/01"),
            new Date("2023/05/01")
        ]
    },
    series: [{
        data: [10, 15, 8, 12, 6]
    }]
});
</script>
In this article
categoryAxis.maxDivisions
Not finding the help you need?
Contact Support