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); + } }; /**