jQuery 多 y 轴和复选框的脚

jQuery Flot with multi yaxis and checkbox

需要帮助在 Flot 中设置多个 y 轴的选项。这是当前图表:

我想将这些属性应用于 y 轴:

$.plot("#placeholder", data, {
        xaxis: {
          tickDecimals: 0
        },
        yaxis: [{
          position: "left",
          min: 0,
          tickFormatter: function (val, axis) {
            return val + "v";
          },
        },{
          min: 0,
          position: "right",
          tickFormatter: function (val, axis) {
            return val + "M";
          },
        }]
});

但我不明白为什么我的代码在这里不起作用:Fiddle here

多轴的选项是yaxes而不是yaxis。查看此更新 fiddle and the documentation