I graph data as follows but I can't seem to get the axis labels to show:
!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
I have included the following in my views and they are being loaded
//= require jquery.flot
//= require jquery.flot.symbol.min
//= require jquery.flot.axislabels
The result is as follows:
How can I get the labels to show?