I tried this answer from Ozan and I could not get the block to copy the scaling for work, so I just used plot.getOptions () and used this to draw a graph. Like this:
var oldOptions = plot.getOptions();
plot = $.plot($("#graph"), data, oldOptions);
This way you can dynamically change your view, and automatic updates will be updated without changing your view.
source
share