From d97fcd6379ff120687a3b5c066fa07bad6ca0a4d Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 9 Dec 2014 14:19:02 +0100 Subject: [PATCH] Fixed groups not being filtered after setOptions --- lib/timeline/component/LineGraph.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index e5d502ac..892c8171 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -240,6 +240,11 @@ LineGraph.prototype.setOptions = function(options) { this.groups[UNGROUPED].setOptions(options); } } + + // this is used to redraw the graph if the visibility of the groups is changed. + if (this.dom.frame) { + this.redraw(true); + } }; /**