导出为CSV的日期时间不正确

时间:2019-06-25 08:33:52

标签: highcharts

我正在尝试使用highcharts将图表数据导出到csv。 X轴是日期时间,Y轴是两个数据的组合。 Y轴数据正确显示并带有标题。但是对于X轴,导出的数据显示为类别,而所有条目的默认值显示为1970年1月1日。

我尝试了highchart文档中提到的其他解决方案,但没有任何改变。

title: {
    text: ' '
},
subtitle: {
     text: ' '
},
xAxis: {
     type: 'datetime',
     title: {
           text: 'TLY Year'
     }
},
yAxis: [{
     labels: {
             format: '{value} kW',
              style: {
                     color: Highcharts.getOptions().colors[0]
              }
      },
      title: {
              text: 'kW',
              style: {
                    color: Highcharts.getOptions().colors[0]
              }
      }
 }]
Category
1/1/1970

样本数据: enter image description here

0 个答案:

没有答案
相关问题