morris.js Graph container element not found

Gene Bo picture Gene Bo · Aug 11, 2013 · Viewed 97.1k times · Source

Why am I getting an exception

Uncaught Error: Graph container element not found

when using morris.js?

Answer

Gene Bo picture Gene Bo · Sep 18, 2013

Solution: Put the javascript after the morris.js div

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