categoryAxis.maxDateGroupsNumber

Specifies the maximum number of groups (categories) to produce when either baseUnit is set to "fit" or baseUnitStep is set to "auto".

This option is ignored in all other cases.

The default value is approximately equal to [widget width, px] / 30

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    categoryAxis: {
        maxDateGroups: 10
    },
    series: [{
        type: "line",
        data: [
            { date: new Date(2023, 0, 1), value: 10 },
            { date: new Date(2023, 1, 1), value: 20 },
            { date: new Date(2023, 2, 1), value: 15 }
        ],
        field: "value",
        categoryField: "date"
    }]
});
</script>
In this article
categoryAxis.maxDateGroups
Not finding the help you need?
Contact Support