突然,我们的图表停止正常工作。散点从红色变为黑色。其中一些失踪了。见这里: http: //jsfiddle.net/dbX4F/2/ - 这工作正常,直到下午 22 日星期五(格林威治标准时间)。我们需要重新编码吗?
初始代码取自演示站点...
var data = [
[-1.0370901525, -0.2242744267],
[-0.9570242763, 0.1297600865],
[-0.8440818191, 0.0616363287],
[-1.0407160521, 0.3065044880],
[-1.0265066624, 0.3317940235],
[-0.9633093774, 0.3405199349],
[-0.9326101542, 0.3265898228],
[-0.9424129128, 0.3695831895],
[-0.9341677129, 0.3855949938],
[-0.9256171882, 0.4086754620],
[-0.9600118995, 0.4446559548],
[-0.7863433361, 0.3159923553]
];
var scatter = [-0.6306822896, -0.4136320949, -0.3912227452, -0.3671057820, -0.3473563194, -0.3113947213, -0.3030101657, -0.2864148617, -0.2742863595, -0.2584708631, -0.2576779723, ];
.........
events: {
// listen to the selection event on the master chart to update the
// extremes of the detail chart
selection: function (event) {
var extremesObject = event.xAxis[0],
min = extremesObject.min,
max = extremesObject.max,
detailData = [],
detailScatter = [],
xAxis = this.xAxis[0];
// reverse engineer the last part of the data
jQuery.each(data, function (i, interval) {
if (i > min && i < max) {
detailData.push([i, interval[0], interval[1]]);
detailScatter.push([i, scatter[i]]);
}
});
// move the plot bands to reflect the new detail span
xAxis.removePlotBand('selection');
xAxis.addPlotBand({
id: 'selection',
from: min,
to: max,
color: 'rgba(0, 0, 0, 0.2)'
});
detailChart.series[0].setData(detailData);
detailChart.series[1].setData(detailScatter);
return false;
}
}
},