categoryAxis.fieldString

The data field containing the category name.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    dataSource: {
        data: [
            { category: "Q1", value: 1 },
            { category: "Q2", value: 2 },
            { category: "Q3", value: 3 }
        ]
    },
    categoryAxis: {
        field: "category"
    },
    series: [{
        field: "value"
    }]
});
</script>
In this article
categoryAxis.field
Not finding the help you need?
Contact Support