日期:2014-05-16 浏览次数:20449 次
var chart = new Highcharts.Chart({
chart: {
height: 130,
renderTo: "container",
type: 'spline',
marginRight: 10,
events: {
load: function () {
// 每秒更新一次数据
var series = this.series[0];
setInterval(function () {
$.post("DataManager.ashx", { type: "getspots", name: name }, function (data) {
for (var x = 0; x < data.length; x++) {//筛选所需数据
if (data[x].value != "") {