我期待flot v.0.7有一个非常奇怪的问题。我有多个轴,配置如下:
var plotData = [
{ data: data1 },
{ data: data2, yaxis: 2 }];
var options = {
selection: { mode: "x" },
xaxis: { mode: "time" },
yaxis: [
{ min: 0 },
{
min: 0,
position: "right",
zoomRange: false,
alignTicksWithAxis: 1,
tickFormatter: formatter,
}
],
grid: { markings: weekendAreas },
zoom: { interactive: true },
grid: {
clickable: true,
hoverable: true,
borderWidth: 1,
},
legend: { show: false },
};
var plot = $jq.plot(container, plotData, options);
但我得到的是Y系列都位于右侧(不仅是第二个Y系列)。我的第二个系列节目没有格式化。如果缩放,Y值可以小于零。如果我不为yaxis使用数组类型并定义它,因为它只是一个系列,那么一切正常。我做错了什么?