좋아, 그래서 데이터베이스에서 데이터를 올바르게 표시 Highcharts 차트가; 그러나 내가 확대하는 순간 차트가 공백이됩니까?하이 차트 차트가 zoomType에서 공백으로 표시됨 : 'x'영역 범위 확대?
$(function() {
$('#content').highcharts({
chart: {
zoomType: 'x',
backgroundColor:'transparent'
},
credits: {
enabled: false
},
title: {
text: 'Players Online'
},
subtitle: {
text: document.ontouchstart === undefined ?
'Click and drag in the plot area to zoom in' :
'Drag your finger over the plot to zoom in'
},
xAxis: {
type: 'datetime',
maxZoom: 3600000, // 1 hour
title: {
text: null
}
},
yAxis: {
title: {
text: 'Players Online'
}
},
tooltip: {
enabled: false
},
legend: {
enabled: false
},
plotOptions: {
area: {
allowPointSelect: false,
fillColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1},
stops: [
[0, Highcharts.getOptions().colors[0]],
[1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
]
},
lineWidth: 1,
marker: {
enabled: false
},
shadow: false,
states: {
hover: {
lineWidth: 1,
enabled: false
}
}
}
},
series: [{
type: 'area',
data: [<?php echo join($data, ',') ?>]
//This is displayed correctly in Javascript, so the issue isn't in my PHP
}]
});
});
는 여기 바보 같은 일을하고 있습니까 : 차트의 자바 스크립트 코드가 여기에
<div class="content" id="content"></div>
입니다 : 여기
는 차트 HTML입니까? 차트의 원인이 공백으로 보이지 않는 것 같습니다. :/
가능한 중복 http://stackoverflow.com/questions/11231398/highcharts-not-displaying-data-at-some-zoom-levels – svillamayor
x 오름차순으로 데이터를 정렬 했습니까? Data 객체를 첨부 할 수 있습니까? –
@SebastianBochan 차트가 사용되는 웹 사이트를 링크하여 라이브 데이터를 볼 수 있습니다. – Simo389