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

The years unit steps.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    categoryAxis: {
        autoBaseUnitSteps: {
            years: [1, 2, 5, 10, 20]
        }
    },
    series: [{
        type: "line",
        data: [
            { date: new Date(2023, 0, 1), value: 10 },
            { date: new Date(2023, 0, 2), value: 20 },
            { date: new Date(2023, 0, 3), value: 15 }
        ],
    }]
});
</script>