Hardik Shah
Hardik Shah

Reputation: 11

How to set categoryAxis.weekStartDay in Line chart

I am using trial version of Kendo UI chart. I was set baseunit ster as "Week". But I have to set wekStartday as Monday. Because in KendoUI by default set to Sunday as start week.

In document suggest that Kendo UI has property categoryAxis.weekStartDay. But I am not able to find this. So, please help me how to set WeekStartDay as Monday instead of Sunday.

Thanks

Upvotes: 0

Views: 1714

Answers (1)

Jayesh Goyani
Jayesh Goyani

Reputation: 11154

Please set integer value from 0 to 6 in weekStartDay property.

For Ex:

 categoryAxis: {
            baseUnit: "weeks",
            weekStartDay: 1,
            categories: [

                        ]
        }

For more information please check below link.

http://docs.kendoui.com/api/dataviz/chart#configuration-categoryAxis.weekStartDay

Upvotes: 1

Related Questions