morris.js Graph container element not found

后端 未结 5 911
情歌与酒
情歌与酒 2020-12-30 21:12

Why am I getting an exception

Uncaught Error: Graph container element not found

when using morris.js?

5条回答
  •  不知归路
    2020-12-30 22:05

    JavaScript's code gets executed before the DOM contains #annual element. Put the javascript after the div or use jQuery.ready()

提交回复
热议问题