我想将这些属性应用于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