在我将 xaxis 更改为模式:“时间”之前,我的图表放大得很好。现在我不能缩放。该图呈现并看起来不错,但不缩放。FLOT 是否支持缩放基于时间的图表?谢谢
$(函数(){
var line1_data = [[1309507200000,82], [1310112000000,76], [1310976000000,71], [1311235200000,76], [1311753600000,82]]; var line2_data = [[1309507200000,60], [1310112000000,40], [1311235200000,60], [1311753600000,80], [1318233600000,60]];
var 数据 = [line1_data, line2_data];
var placeholder2 = $("#placeholder2");
var options = {
series: { lines: { show: true }, shadowSize: 0 },
xaxis: { mode: "time", zoomRange: [0.1, 10] },
yaxis: { zoomRange: [0.1, 10] },
zoom: { interactive: true }
};
var plot = $.plot(placeholder2, data, options);
});