File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 11
11
* ** Graph Panel** : Fixed issue where newly added graph panels shared same axes config, fixes [ #4582 ] ( https://github.com/grafana/grafana/issues/4582 )
12
12
* ** Graph Panel** : Fixed issue with axis labels overlapping Y-axis, fixes [ #4626 ] ( https://github.com/grafana/grafana/issues/4626 )
13
13
* ** InfluxDB** : Fixed issue with templating query containing template variable, fixes [ #4602 ] ( https://github.com/grafana/grafana/issues/4602 )
14
+ * ** Graph Panel** : Fixed issue with hiding series and stacking, fixes [ #4557 ] ( https://github.com/grafana/grafana/issues/4557 )
14
15
15
16
# 3.0.0-beta2 (2016-04-04)
16
17
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ class GraphCtrl extends MetricsPanelCtrl {
116
116
117
117
this . colors = $scope . $root . colors ;
118
118
119
+ this . events . on ( 'render' , this . onRender . bind ( this ) ) ;
119
120
this . events . on ( 'data-received' , this . onDataReceived . bind ( this ) ) ;
120
121
this . events . on ( 'data-error' , this . onDataError . bind ( this ) ) ;
121
122
this . events . on ( 'data-snapshot-load' , this . onDataSnapshotLoad . bind ( this ) ) ;
@@ -215,20 +216,15 @@ class GraphCtrl extends MetricsPanelCtrl {
215
216
this . panel . tooltip . msResolution = this . panel . tooltip . msResolution || series . isMsResolutionNeeded ( ) ;
216
217
}
217
218
218
- series . applySeriesOverrides ( this . panel . seriesOverrides ) ;
219
219
return series ;
220
220
}
221
221
222
- seriesOverrideChanged ( ) {
223
- if ( ! this . seriesList ) {
224
- return ;
225
- }
222
+ onRender ( ) {
223
+ if ( ! this . seriesList ) { return ; }
226
224
227
225
for ( let series of this . seriesList ) {
228
226
series . applySeriesOverrides ( this . panel . seriesOverrides ) ;
229
227
}
230
-
231
- this . render ( ) ;
232
228
}
233
229
234
230
changeSeriesColor ( series , color ) {
@@ -247,7 +243,6 @@ class GraphCtrl extends MetricsPanelCtrl {
247
243
} else {
248
244
this . toggleSeriesExclusiveMode ( serie ) ;
249
245
}
250
-
251
246
this . render ( ) ;
252
247
}
253
248
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ define([
43
43
}
44
44
45
45
$scope . updateCurrentOverrides ( ) ;
46
- $scope . ctrl . seriesOverrideChanged ( ) ;
46
+ $scope . ctrl . render ( ) ;
47
47
} ;
48
48
49
49
$scope . colorSelected = function ( color ) {
@@ -62,7 +62,7 @@ define([
62
62
colorSelected : $scope . colorSelected ,
63
63
} ,
64
64
onClose : function ( ) {
65
- $scope . ctrl . seriesOverrideChanged ( ) ;
65
+ $scope . ctrl . render ( ) ;
66
66
}
67
67
} ) ;
68
68
} ;
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ define([
22
22
ctx . scope . ctrl = {
23
23
refresh : sinon . spy ( ) ,
24
24
render : sinon . spy ( ) ,
25
- seriesOverrideChanged : sinon . spy ( ) ,
26
25
seriesList : [ ]
27
26
} ;
28
27
ctx . scope . render = function ( ) { } ;
You can’t perform that action at this time.
0 commit comments