miunsi63 / gflot

Automatically exported from code.google.com/p/gflot
0 stars 0 forks source link

redraw() method does not work on pie objects #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. set model series data + piedatapoints

2. create a function to update the series via model.clear() and set new series 
& data points, then plot.redraw()

3. the graph is not redrawn.

Note: plot.redraw() with new data works for bars.

Original issue reported on code.google.com by olivier....@gmail.com on 20 Mar 2012 at 2:01

GoogleCodeExporter commented 9 years ago
Ok I'll look into it. It might be a bug on the pie plugin.
For now, you can recreate the pie instead of redraw it. The final user 
shouldn't see a difference.

Original comment by nmr.morel on 20 Mar 2012 at 8:39

GoogleCodeExporter commented 9 years ago
It is a bug in the pie plugin. An issue is currently open in flot project : 
http://code.google.com/p/flot/issues/detail?id=577

I tested the given patch and it seems to work. While waiting for the next 
release, you can grab the minified version here : 
http://code.google.com/p/gflot/source/browse/#svn%2Ftrunk%2Fflot
And add your own javascript files as described in the wiki.

Original comment by nmr.morel on 20 Mar 2012 at 8:57

GoogleCodeExporter commented 9 years ago
awesome - thank you very much.

Original comment by olivier....@gmail.com on 20 Mar 2012 at 11:49

GoogleCodeExporter commented 9 years ago

Original comment by nmr.morel on 25 Mar 2012 at 6:05