Commit 1a29a769 by Torkel Ödegaard

fix(series overrides): graph no rerenders with new styles after updating series…

fix(series overrides): graph no rerenders with new styles after updating series override, fixes #4621
parent 583c0f09
......@@ -219,6 +219,18 @@ class GraphCtrl extends MetricsPanelCtrl {
return series;
}
seriesOverrideChanged() {
if (!this.seriesList) {
return;
}
for (let series of this.seriesList) {
series.applySeriesOverrides(this.panel.seriesOverrides);
}
this.render();
}
changeSeriesColor(series, color) {
series.color = color;
this.panel.aliasColors[series.alias] = series.color;
......
......@@ -43,7 +43,7 @@ define([
}
$scope.updateCurrentOverrides();
$scope.ctrl.render();
$scope.ctrl.seriesOverrideChanged();
};
$scope.colorSelected = function(color) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment