|
|
@@ -116,6 +116,7 @@ class GraphCtrl extends MetricsPanelCtrl {
|
|
|
|
|
|
this.colors = $scope.$root.colors;
|
|
|
|
|
|
+ this.events.on('render', this.onRender.bind(this));
|
|
|
this.events.on('data-received', this.onDataReceived.bind(this));
|
|
|
this.events.on('data-error', this.onDataError.bind(this));
|
|
|
this.events.on('data-snapshot-load', this.onDataSnapshotLoad.bind(this));
|
|
|
@@ -215,20 +216,15 @@ class GraphCtrl extends MetricsPanelCtrl {
|
|
|
this.panel.tooltip.msResolution = this.panel.tooltip.msResolution || series.isMsResolutionNeeded();
|
|
|
}
|
|
|
|
|
|
- series.applySeriesOverrides(this.panel.seriesOverrides);
|
|
|
return series;
|
|
|
}
|
|
|
|
|
|
- seriesOverrideChanged() {
|
|
|
- if (!this.seriesList) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ onRender() {
|
|
|
+ if (!this.seriesList) { return; }
|
|
|
|
|
|
for (let series of this.seriesList) {
|
|
|
series.applySeriesOverrides(this.panel.seriesOverrides);
|
|
|
}
|
|
|
-
|
|
|
- this.render();
|
|
|
}
|
|
|
|
|
|
changeSeriesColor(series, color) {
|
|
|
@@ -247,7 +243,6 @@ class GraphCtrl extends MetricsPanelCtrl {
|
|
|
} else {
|
|
|
this.toggleSeriesExclusiveMode(serie);
|
|
|
}
|
|
|
-
|
|
|
this.render();
|
|
|
}
|
|
|
|