0
我coverted所有的x值与Date.parse()函数我怎么会改变X,Y标签和删除空的X酒吧
我怎么可能让我的意料
- change x label and x value as "%Y%m%d" in tooltip
- remove the strange 12:00 empties on x-axis
感谢
隐蔽功能
$.each($scope.flights, function() {
var current_flight_no = this
$.each(current_flight_no.data, function(){
this.x = Date.parse(this.x);
})
});
图表选项,
options: {
chart: {
type: 'scatter'
},
},
xAxis: {
type: 'datetime',
dateTimeLabelFormats: {
day: '%b %e (%a)',
},
tooltip: {
formatter: function() {
return 'Extra data: <b>' + this.point.price + '</b>';
}
},
如果可能的话给我们提琴 –