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

后端 未结 7 1368
盖世英雄少女心
盖世英雄少女心 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:43

    I also had the same problem. I set a height and a width to the

    tag and it fixed the error.

    You can use either inline css (as I did) or JS to set the height and the width. But plot() function should be called only after we set the height of the

提交回复
热议问题