morris.js Graph container element not found

后端 未结 5 849
情歌与酒
情歌与酒 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 21:45

    if don' t use the chart on this page, you can do this:

    1. Go to the line where the exception is throwed in morris.js
    2. change it like this: before:

        if (this.el === null || this.el.length === 0) {
         return;
          // throw new Error("Graph placeholder not found.");
        } 
      

提交回复
热议问题