javascript - Highcharts tooltip dateTimeLabelFormats 如何显示正确的日期格式?
巴扎黑
巴扎黑 2017-04-10 14:40:34
0
1
604
tooltip:{
    shared:true,
    crosshairs:true,
    dateTimeLabelFormats:{
        hour:"%m-%e %H:%M",
        day:"%m-%e",
        month:"%Y-%m",
    },
},

我在highcharts里设置了这样的tooltip配置,目前在hour和day的下可以用正确的格式显示,当我想显示201409月的月份时,使用的还是day的配置,而不是month的配置,怎么能让highcharts选择正确的格式呢?highcharts如何判断何时是用什么配置?

巴扎黑
巴扎黑

reply all(1)
左手右手慢动作

http://www.highcharts.com/docs/chart-concepts/tooltip#formatter

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template