categoryAxis.typeString(default: "category")

The axis type.

"category"

Discrete category axis.

"date"

Specialized axis for displaying chronological data.

Example

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