categoryAxis.type String
(default: "category")
The category axis type.
The supported values are:
- "category" - discrete category axis.
- "date" - specialized axis for displaying chronological data.
Example - set the category axis type to date
<div id="chart"></div>
<script>
$("#chart").kendoChart({
categoryAxis: {
categories: [
new Date("2011/12/20"),
new Date("2011/12/21")
],
type: "date"
},
series: [
{ data: [1, 2, 3] }
]
});
</script>
Example - set the category axis type to category
<div id="chart"></div>
<script>
$("#chart").kendoChart({
categoryAxis: {
categories: [
"Seats",
"Cars",
"People"
],
type: "category"
},
series: [
{ data: [1, 2, 3] }
]
});
</script>