Highcharts chart with 'datetime' xAxis - use categories on drilldown

后端 未结 2 1689
半阙折子戏
半阙折子戏 2021-01-06 08:11

Is there a way to have \'datetime\' for the xAxis type on the main series, but then when a series is clicked on, have the drilldown use categories for that time?

I

2条回答
  •  情歌与酒
    2021-01-06 08:42

    You need to add this to your xAxis:

    labels: {
            formatter: function() {
                  return Highcharts.dateFormat('%a %d %b', this.value);
             }
    },
    

    Check out the fiddle.

提交回复
热议问题