在highstock中更改导航日期格式

bah*_*Agi 3 navigator highcharts highstock

我想更改导航日期格式,例如从7月12日到2012年.

我该怎么办?

航海家

请帮忙...

谢谢

Seb*_*han 6

您可以将xAxis参数用于导航器并定义标签选项(与标准轴一样).

http://jsfiddle.net/XGunG/

navigator: {
        xAxis: {
            dateTimeLabelFormats: {
                day: '%Y',
                week: '%Y',
                month: '%Y',
                year: '%Y'
            }
        }
    },
Run Code Online (Sandbox Code Playgroud)

http://api.highcharts.com/highstock#navigator.xAxis http://api.highcharts.com/highstock#xAxis.dateTimeLabelFormats