user1197696
user1197696

Reputation: 11

How to set Startofweek in highcharts api

Hi I am using Highcharts api for developing charts.

I want set the start of week value. I have tried in many ways but failed.

I saw that varible in the following json object.

var defaultXAxisOptions = {
    max: null,
    min: null,
    minPadding: 0.01,
    maxPadding: 0.01,
    //minRange: null,
    minorGridLineColor: '#E0E0E0',
    minorGridLineWidth: 1,
    minorTickColor: '#A0A0A0',
    minorTickLength: 2,
    minorTickPosition: 'outside', // inside or outside

    startOfWeek: 1,
    startOnTick: false,


    type: 'linear' // linear, logarithmic or datetime
},

The above object is taken from highstock.js

I want to override this in my js file.

Upvotes: 0

Views: 372

Answers (1)

dgw
dgw

Reputation: 13666

To change the value of your defaultXAxisOptions:

defaultXAxisOptions.startOfWeek=0;

Upvotes: 1

Related Questions