我圖形數據如下,但我似乎無法得到軸標籤顯示:海軍報不顯示x軸標籤
!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
結果如下:
我怎樣才能得到實驗室els顯示?
您正在使用哪個jquery.flot.axislabels.js?谷歌給了我幾個選擇:https://raw.github.com/RuiPereira/flot/axislabels/jquery.flot.axislabels.js或https://raw.github.com/xuanluo/flot-axislabels/master/jquery .flot.axislabels.js – Mark