Flot pie chart gives error in firebug: “uncaught exception: Invalid dimensions for plot, width = null, height = null”

后端 未结 7 1457
盖世英雄少女心
盖世英雄少女心 2020-12-29 04:14

I using flot pie chart for plotting pie charts. but it shows error in firebug that

uncaught exception: Invalid dimensions for plot, width = null, heig

7条回答
  •  情书的邮戳
    2020-12-29 04:36

    Check these:

    • You include the jQuery library first and then flot js library

    • Wrap the whole code within $(document).ready() handler function.

    • you bind the flot with correct id and there is no repeat of same id.

    • if your div is dynamic i.e. appeared to DOM after page load then bind plot() after the element appeared to DOM.

提交回复
热议问题