diff --git a/jquery.flot.js b/jquery.flot.js index 0817fd8..df868d3 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1222,6 +1222,9 @@ return v.toFixed(axis.tickDecimals); }; } + else if (opts.mode === "time" && typeof axis.tickGenerator === "undefined") { + throw new Error("Time mode requires the flot.time plugin."); + } if ($.isFunction(opts.tickFormatter)) axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); };