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
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.