How to create a function to get the month as Jan,feb.. displayed in kendo chart x axis.
var internetUsers = [ {
\"Month\": \"1\",
You could use kendoui's time format function:
kendo.toString(new Date(2000, value, 1), "MMMM"); // if value = 9, it would output September
Check out kendoui's date format page. It is VERY helpful. http://docs.telerik.com/kendo-ui/getting-started/framework/globalization/dateformatting
First add an array to hold the month names, like so:
var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"];
then modify the categoryAxis to use this array
categoryAxis: {
field: "Month",
labels: {
template: "#=monthNames[value - 1]#"
},
},