我将数据绘制如下,但似乎无法显示轴标签:
!function ($) {
var options = {
xaxis: {
mode: "time",
min: start_time,
// max: (new Date()).getTime(),
tickSize: [4, "hour"],
tickLength: 0,
axisLabel: 'Day',
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial, Helvetica, Tahoma, sans-serif',
axisLabelPadding: 3
},
yaxis: {
axisLabel: 'Amount',
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial, Helvetica, Tahoma, sans-serif',
axisLabelPadding: 5
},
}
$.plot($("#placeholder"), [open_emails],options);
}(window.jQuery
我已在我的视图中包含以下内容,并且正在加载它们
//= require jquery.flot
//= require jquery.flot.symbol.min
//= require jquery.flot.axislabels
结果如下:
如何让标签显示?