高图表多个x轴日期时间问题

时间:2017-03-23 06:19:27

标签: javascript asp.net highcharts

我绘制了一个多轴高图表 - 列范围图.X轴被绘制为日期时间。两个轴的最小值和最大值相同。但问题是轴值在不同时间开始(参见附图)。只有一天它工作正常。

enter image description here

xAxis: [{
                            type: 'datetime',
                            tickInterval: 3600 * 1000 * 24,
                            min: dayStartDateGraph,
                        max: dayEndDateGraph,
                            title: {
                                  text: 'Day'
                            },  
                            labels: {
                formatter: function () { 
                        return Highcharts.dateFormat('%b-%e', this.value);                                  
                }
                } 
            },
             {
                 type: 'datetime',
                 tickInterval: 3600 * 1000 * 24,
                 min: dayStartDateGraph,
                 max: dayEndDateGraph,                 
                 labels: {
                     formatter: function () {                         
                             return Highcharts.dateFormat('%b-%e', this.value);                                    
                     }
                 }
             }]

0 个答案:

没有答案