"datetime"
or "category"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
$( ‘#container‘ ).highcharts({ xAxis: { type: ‘datetime‘ , labels: { formatter: function () { return
Highcharts.dateFormat( ‘%m-%d ‘ , this .value); } }, startOnTick: true , endOnTick: true , }, series: [{ pointStart: Date.UTC(2014, 1, 1), //JS时间戳 1388534400000 data: [29.9, 19.9, 42.9, 20.9] }] }); |
原文:http://www.cnblogs.com/bestfriends/p/3521040.html