不知道怎么说这个,但是这里有。
我希望我的X轴间隔为1天,但是,我希望天之间的实际绘图点间隔为5分钟。我该怎么做呢?由于有很多情节点,我确定我需要某种水平滚动选项吗?现在我的图表非常紧凑!
注意:每个绘图点是从早上7点开始到晚上11点结束的5分钟时间间隔
代码如下:
$(function () {
$('#container').highcharts({
chart: {
type: 'spline'
},
credits: {
text: 'XML Feed',
href: 'utlfeed.aspx?campus=PR&room=B325'
},
title: {
text: 'PR-B325 Room Utilization',
x: -20 //center
},
subtitle: {
text: 'Source: FreePC',
x: -20
},
xAxis: {
type: 'datetime',
maxZoom: 14 * 24 * 3600000, // fourteen days
tickInterval: 24 * 3600 * 1000
// categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Availability'
},
min: 0,
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ' PCs'
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: 'Available',
color: '#00FF00',
pointInterval: 24 * 3600 * 1000,
pointStart: Date.UTC(2013, 9, 17),
data: [[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 21],[Date.UTC(2013, 9, 17), 21],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 10],[Date.UTC(2013, 9, 17), 8],[Date.UTC(2013, 9, 17), 7],[Date.UTC(2013, 9, 17), 5],[Date.UTC(2013, 9, 17), 4],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 2],[Date.UTC(2013, 9, 17), 3],[Date.UTC(2013, 9, 17), 3],[Date.UTC(2013, 9, 17), 4],[Date.UTC(2013, 9, 17), 3],[Date.UTC(2013, 9, 17), 7],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 33],[Date.UTC(2013, 9, 20), 12],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 39],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 39],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 37],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 3],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 1],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 35],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 39],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 36],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 40],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 39],[Date.UTC(2013, 9, 21), 38],[Date.UTC(2013, 9, 21), 36],[Date.UTC(2013, 9, 21), 35],[Date.UTC(2013, 9, 21), 33],[Date.UTC(2013, 9, 21), 32],[Date.UTC(2013, 9, 21), 32],[Date.UTC(2013, 9, 21), 32],[Date.UTC(2013, 9, 21), 31],[Date.UTC(2013, 9, 21), 31],[Date.UTC(2013, 9, 21), 30],[Date.UTC(2013, 9, 21), 30],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 7],[Date.UTC(2013, 9, 21), 5],[Date.UTC(2013, 9, 21), 5],[Date.UTC(2013, 9, 21), 5],[Date.UTC(2013, 9, 21), 4],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 13],[Date.UTC(2013, 9, 21), 7],[Date.UTC(2013, 9, 21), 13],[Date.UTC(2013, 9, 21), 17],[Date.UTC(2013, 9, 21), 19],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 19],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 20],[Date.UTC(2013, 9, 21), 20],[Date.UTC(2013, 9, 21), 21],[Date.UTC(2013, 9, 21), 19],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 24],[Date.UTC(2013, 9, 21), 24],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 24],[Date.UTC(2013, 9, 21), 24],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 23],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 25],[Date.UTC(2013, 9, 21), 30],[Date.UTC(2013, 9, 21), 17],[Date.UTC(2013, 9, 21), 13],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 6],[Date.UTC(2013, 9, 21), 1],[Date.UTC(2013, 9, 21), 3],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 3],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 2],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 12],[Date.UTC(2013, 9, 21), 10],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 10],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 9],[Date.UTC(2013, 9, 21), 10],[Date.UTC(2013, 9, 21), 10],[Date.UTC(2013, 9, 21), 11],[Date.UTC(2013, 9, 21), 11],[Date.UTC(2013, 9, 21), 11],[Date.UTC(2013, 9, 21), 11],[Date.UTC(2013, 9, 21), 13],[Date.UTC(2013, 9, 21), 18],[Date.UTC(2013, 9, 21), 22],[Date.UTC(2013, 9, 21), 22],[Date.UTC(2013, 9, 21), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 29],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 28],[Date.UTC(2013, 9, 22), 27],[Date.UTC(2013, 9, 22), 27],[Date.UTC(2013, 9, 22), 27],[Date.UTC(2013, 9, 22), 27],[Date.UTC(2013, 9, 22), 26],[Date.UTC(2013, 9, 22), 26],[Date.UTC(2013, 9, 22), 22],[Date.UTC(2013, 9, 22), 19],[Date.UTC(2013, 9, 22), 17],[Date.UTC(2013, 9, 22), 14],[Date.UTC(2013, 9, 22), 14],[Date.UTC(2013, 9, 22), 13],[Date.UTC(2013, 9, 22), 13]]
}, {
name: 'Unavailable',
color: '#FF0000',
pointInterval: 24 * 3600 * 1000,
pointStart: Date.UTC(2013, 9, 17),
data: [[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 21],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 27],[Date.UTC(2013, 9, 17), 30],[Date.UTC(2013, 9, 17), 32],[Date.UTC(2013, 9, 17), 33],[Date.UTC(2013, 9, 17), 35],[Date.UTC(2013, 9, 17), 36],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 38],[Date.UTC(2013, 9, 17), 37],[Date.UTC(2013, 9, 17), 37],[Date.UTC(2013, 9, 17), 36],[Date.UTC(2013, 9, 17), 37],[Date.UTC(2013, 9, 17), 33],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 27],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 15],[Date.UTC(2013, 9, 17), 15],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 12],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 12],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 11],[Date.UTC(2013, 9, 17), 12],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 13],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 27],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 17],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 23],[Date.UTC(2013, 9, 17), 17],[Date.UTC(2013, 9, 17), 17],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 15],[Date.UTC(2013, 9, 17), 15],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 22],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 23],[Date.UTC(2013, 9, 17), 17],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 16],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 20],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 18],[Date.UTC(2013, 9, 17), 19],[Date.UTC(2013, 9, 17), 21],[Date.UTC(2013, 9, 17), 23],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 26],[Date.UTC(2013, 9, 17), 27],[Date.UTC(2013, 9, 17), 27],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 29],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 17), 23],[Date.UTC(2013, 9, 17), 25],[Date.UTC(2013, 9, 17), 22],[Date.UTC(2013, 9, 17), 22],[Date.UTC(2013, 9, 17), 23],[Date.UTC(2013, 9, 17), 24],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 15],[Date.UTC(2013, 9, 19), 14],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 34],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 40],[Date.UTC(2013, 9, 19), 39],[Date.UTC(2013, 9, 19), 39],[Date.UTC(2013, 9, 19), 35],[Date.UTC(2013, 9, 19), 35],[Date.UTC(2013, 9, 19), 23],[Date.UTC(2013, 9, 19), 26],[Date.UTC(2013, 9, 19), 27],[Date.UTC(2013, 9, 19), 21],[Date.UTC(2013, 9, 19), 28],[Date.UTC(2013, 9, 19), 11],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 19), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 7],[Date.UTC(2013, 9, 20), 28],[Date.UTC(2013, 9, 20), 40],[Date.UTC(2013, 9, 20), 1],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 1],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 3],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 37],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 39],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 5],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 1],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 20), 0],[Date.UTC(2013, 9, 22), 14],[Date.UTC(2013, 9, 22), 18],[Date.UTC(2013, 9, 22), 21],[Date.UTC(2013, 9, 22), 23],[Date.UTC(2013, 9, 22), 26],[Date.UTC(2013, 9, 22), 26],[Date.UTC(2013, 9, 22), 27],[Date.UTC(2013, 9, 22), 27]]
}]
});
});
以下是jsFiddle链接:http://jsfiddle.net/gakca/
谢谢, 大卫
答案 0 :(得分:2)
随意检查以下jsFiddle,我根据你的jsFiddle进行了一些更改。但不太确定这是不是你想要的。 http://jsfiddle.net/ethanph5/BC7Ks/2/
xAxis: {
type: 'datetime',
maxZoom: 7 * 24 * 3600000,
tickInterval: 24 * 3600 * 1000,
minTickInterval: 60 * 1000,
minRange: 1800 * 1000
}
要获得更多放大,您应该使用minTickInterval
和minRange
来查看最适合您需求的设置。
要向x轴添加滚动条,以下是答案:How to enable Highcharts scrollbar?和highcharts scroll through axis
关键变化是:
在HTML中:
<script src="http://code.highcharts.com/stock/highstock.js"></script>
在Javascript中:
scrollbar: {
enabled: true
}
这是我更新的jsFiddle:http://jsfiddle.net/ethanph5/BC7Ks/3/