Edit this page

categoryAxis.field String

The data field containing the category name.

Example

<div id="chart"></div>
<script>

// assuming the following data...
var data = [ { sales: 200, year: 2005 }, { sales: 300, year: 2006 }, { sales: 400, year: 2007 }];
// specify the "year" as the field for the category axis
$("#chart").kendoChart({
    dataSource: {
        data: data
    },
    categoryAxis: {
        field: "year"
    }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy