categoryAxis.maxDateGroupsNumber(default: 10)

The maximum number of groups (categories) to display when categoryAxis.baseUnit is set to "fit" or categoryAxis.baseUnitStep is set to "auto".

Example

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
    }],
    categoryAxis: {
        type: "date",
        categories: [
            new Date(2023, 0, 1), new Date(2023, 1, 1), new Date(2023, 2, 1),
            new Date(2023, 3, 1), new Date(2023, 4, 1), new Date(2023, 5, 1),
            new Date(2023, 6, 1), new Date(2023, 7, 1), new Date(2023, 8, 1),
            new Date(2023, 9, 1), new Date(2023, 10, 1), new Date(2023, 11, 1)
        ],
        maxDateGroups: 5
    }
});
</script>
In this article
categoryAxis.maxDateGroups
Not finding the help you need?
Contact Support