Commit 4e5c800c authored by yaelelmatad's avatar yaelelmatad

Throw error when flot.time plugin is missing.

Fixes issues 709 on google code.
parent ca050b26
......@@ -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); };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment