Why am I getting an exception
Uncaught Error: Graph container element not found
when using morris.js
?
Solution: Put the javascript after the morris.js div
From this post from tiraeth: https://github.com/morrisjs/morris.js/issues/137
if don' t use the chart on this page, you can do this:
change it like this: before:
if (this.el === null || this.el.length === 0) { return; // throw new Error("Graph placeholder not found."); }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With