morris.js Graph container element not found

javascript, morris.js

Solution

Solution: Put the javascript after the morris.js div

From this post from tiraeth: https://github.com/morrisjs/morris.js/issues/137

Problem

Why am I getting an exception Uncaught Error: Graph container element not found when using `morris.js`?

Original source