From: Florian Forster Date: Thu, 23 Dec 2010 09:05:29 +0000 (+0100) Subject: share/collection.js: Keep visibility when redrawing graphs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e3fb09073a64cc051c11c4a1bdcec493f937b764;p=collection4.git share/collection.js: Keep visibility when redrawing graphs. --- diff --git a/share/collection.js b/share/collection.js index 57bd04d..141acbd 100644 --- a/share/collection.js +++ b/share/collection.js @@ -399,7 +399,10 @@ function inst_redraw (inst, def, data_list) /* {{{ */ } for (i = inst.chart.series.length - 1; i >= 0; i--) + { + series_array[i].visible = inst.chart.series[i].visible; inst.chart.series[i].remove (/* redraw = */ false); + } for (i = 0; i < series_array.length; i++) inst.chart.addSeries (series_array[i], /* redraw = */ false);