morris.js Graph container element not found
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:
- Go to the line where the exception is throwed in morris.js
change it like this: before:
if (this.el === null || this.el.length === 0) { return; // throw new Error("Graph placeholder not found."); }
I had this issue when I was using the node.js framework. Taking out the script tags containing the morris charts and the jquery from the bottom of the html file worked for me. I am using Require.js to load the dependencies for my project instead. I hope this helped.