faheem801 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Change options after plot has been plotted #435

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a possibility to change the plot's options after it has been printed, 
as you can do with plot.setData(data); for the plot's data? 

Original issue reported on code.google.com by julian.p...@googlemail.com on 8 Nov 2010 at 4:59

GoogleCodeExporter commented 9 years ago
plot it again with the new parameters.

Original comment by de.jabb...@gmail.com on 6 Dec 2010 at 1:47

GoogleCodeExporter commented 9 years ago
You can also do a .getOptions().something = 123, but you might have to call a 
function afterwards (like setupGrid()) to see the change. The reason why I 
never implemented .setOptions() is plainly that when the options change, all 
bets are off, we have to either do a complex diff or reset everything, and if 
you reset everything, then you might as well just replot. That was at least the 
thinking at that time.

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 10:00

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:52