search

Home  >  Q&A  >  body text

javascript - Highcharts tooltip dateTimeLabelFormats 如何显示正确的日期格式?

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如何判断何时是用什么配置?

巴扎黑巴扎黑2901 days ago601

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-10 14:42:34

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

    reply
    0
  • Cancelreply