在散点图上显示日期时间格式

时间:2019-09-23 19:48:52

标签: highcharts

  

尝试日期/字符串/ UTC。他们都没有工作:(

如此多的无效示例,即Internet上错误的/过期的配置。 图表库还有其他选择吗?

我的图表输出完全不正确。

准备数据

xAxis: {
    type: 'datetime',
    // dateTimeLabelFormats: { // don't display the dummy year
    //     month: '%e. %b',
    //     year: '%b'
    // },
    labels: {
        formatter: function() {
            return Highcharts.dateFormat('%Y - %m', this.value);
        }
    }        ,
    // labels: {
    //     format: '{value: %Y-%m-%d}'
    // },
    title: {
        text: 'Build Date'
    }
},        
  

配置

{{1}}

enter image description here

0 个答案:

没有答案
相关问题