I using flot pie chart for plotting pie charts. but it shows error in firebug that
uncaught exception: Invalid dimensions for plot, width = null, height
= null
I have given the height and width from stylesheet also. and tried also like this
<div id="placeholder1" style="width:140px;height:140px" ></div>
how to resolve this?
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
idand there is no repeat of sameid.if your
divis dynamic i.e. appeared to DOM after page load then bindplot()afterthe element appeared to DOM.