hobo6676
Posts: 13
Joined: Fri Jan 20, 2012 6:26 am

How do I reset the date format of the navigator?

Image
I want to reset the format of the navigator,inorder to it looks like '2012-02-08', but I can not find the way . The follow code does not work.

Code: Select all

 navigator: {
                     
                         labels: {

                             dateTimeLabelFormats: function () {

                                 return Highcharts.dateFormat('%Y-%m-%d', this.value);

                             }
                         }
                   
                    },
sorry,I find the result fromhttp://www.highcharts.com/stock/ref/#navigator--xAxis , the right code is :

Code: Select all

  navigator: {

                        xAxis: {
                            tickWidth: 0,
                            lineWidth: 0,
                            gridLineWidth:0,
                          //  tickPixelInterval: 200,
                            labels: {
                                align: 'left',
                                x: 3,
                                y: -4,
                                formatter: function () {

                                    return Highcharts.dateFormat('%Y-%m-%d', this.value);
                                }
                            }
                        }
                   
                    },

Return to “Highcharts Usage”