나는이 페이지가 있습니다사용 highchart 및 highstock는
<script type="text/javascript" src="jQuery/Highcharts/highstock1.1.6.js"></script>
<script type="text/javascript" src="jQuery/Highcharts/highcharts2.1.4.js"></script>
을하고 페이지에 나는
$.getJSON(
"server/indice.server.php?row=" + row +"&item="+ item,
null,
function(data)
{
chartindice = new Highcharts.Chart(
{
chart:
{
renderTo: 'graph',
defaultSeriesType: 'line',
zoomType: 'x'
},
/////moore setting..
series:
[{
type: 'area',
name: titleindice,
data: indice,
showInLegend : false //disable the the show/hide icon
}]
});
});
과 highstock 그래프를 사용
window.chart = new Highcharts.StockChart({
chart: {
renderTo: 'chartHistory'
},
rangeSelector: {
selected: 2
},
series: [{
data: history,
type: 'spline',
tooltip: {
valueDecimals: 2
}
}]
});
그들은 수 함께 일하는 것, 단지 하나 또는 다른 것.
어떻게해야합니까?
잘 작동이야? 무슨 일이야? –
예, 심지어 seperatly highchart 그래프 (잘) 작동하지 않습니다 .. 거기에 highstock + highchrt js 파일이 있습니까? – devmonster
시리즈 데이터를 기록하고 여기에 게시 할 수 있습니까? –