0
我找不出为什么yaxis标签不显示。我正在使用Mark Cote的jquery.flot.axislabels.js。有人能帮我看看下面的代码吗?Flot yaxis标签不显示
options = {
series: {
lines: { show: true, lineWidth: 1 },
points: { show: pshow, radius: 2 },
color: cnum
},
legend: {
position: "nw",
backgroundOpacity: 0.5
},
xaxis: {
mode: "time",
timeformat: timeformat,
timezone: "utc"
},
yaxis: {
ticks: 15,
tickDecimals: 3,
minTickSize: 1,
axisLabel: 'Milliseconds',
axisLabelPadding: 10,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelFontSizePixels: 10
},
grid: { hoverable: true },
tooltip: true,
tooltipOpts: {
content: "%x.1 - %y.4",
shifts: { x: -60, y: 25 }
},
selection: { mode: "xy" }
};
var plot = $.plot(placeholder, rdata.data, options);
“rdata.data”包含多个系列。我试图只绘制一个,它没有帮助。
你可以创建一个[JSFiddle](http://jsfiddle.net/)来复制这个问题吗? – mechenbier
你的代码适用于我:http://jsfiddle.net/ax6wW/1/,你必须重现它。 – Mark