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

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

    If you put your chart html in div which is given "display: none" class you will get this error. You must put your chart html in div which is given "display:block" class when "jquery.flot.js" is loaded.

    if this html is in any div which has class="display: none" when "jquery.flot.js" is loaded, change it to display: block

提交回复
热议问题