I draw the data as follows, but I cannot get the labels of the axis labels:
!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
In my views, I included the following: they load
//= require jquery.flot //= require jquery.flot.symbol.min //= require jquery.flot.axislabels
The result is as follows:
How can I get shortcuts for display?