【发布时间】:2014-03-24 20:28:36
【问题描述】:
大家好,我无法将数据加载到 highstock 图表中。
我厌倦了用 highstock 显示图表
我的数据.json
[{
"date":1395651841,
"price":11,
"amount":12,
"tid":33170585,
"price_currency":"USD",
"item":"none",
"trade_type":"bid"
},
{
"date":1395651836,
"price":4,
"amount":3,
"tid":33170584,
"price_currency":"USD",
"item":"none",
"trade_type":"ask"}
]
还有我的 Html
<script type="text/javascript">
$(function() {
$.getJSON('data.json', function(data) {
// Create the chart
$('#container').highcharts('StockChart', {
rangeSelector : {
inputEnabled: $('#container').width() > 480,
selected : 1
},
title : {
text : 'Tiredddd'
},
series : [{
name : '@_@',
data : data,
type : 'areaspline',
threshold : null,
tooltip : {
valueDecimals : 2
},
fillColor : {
linearGradient : {
x1: 0,
y1: 0,
x2: 0,
y2: 1
},
stops : [[0, Highcharts.getOptions().colors[0]], [1, 'rgba(0,0,0,0)']]
}
}]
});
});
});
</script>
请帮助我找到错误
【问题讨论】:
标签: java php jquery html highstock