How to get the month names in kendo chart by using function

后端 未结 2 1587
半阙折子戏
半阙折子戏 2021-01-26 04:44

How to create a function to get the month as Jan,feb.. displayed in kendo chart x axis.

var internetUsers = [ {
                            \"Month\": \"1\",
           


        
2条回答
  •  半阙折子戏
    2021-01-26 05:02

    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

提交回复
热议问题