diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index 822fa9e..b48df0b 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -318,6 +318,12 @@ More detail and specific examples can be found in the included HTML file. target.prepend("
Could not draw pie with labels contained inside canvas
"); } + // Reset the redraw flag on success, so the loop above can run + // again in the event of a resize or other update. + // TODO: We should remove this redraw system entirely! + + redraw = true; + if (plot.setSeries && plot.insertLegend) { plot.setSeries(slices); plot.insertLegend();