File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ function ($) {
70
70
71
71
for ( i = 0 ; i < seriesList . length ; i ++ ) {
72
72
series = seriesList [ i ] ;
73
- if ( ! series . data . length ) { continue ; }
73
+
74
+ if ( ! series . data . length ) {
75
+ results . push ( { hidden : true } ) ;
76
+ continue ;
77
+ }
74
78
75
79
if ( scope . panel . stack ) {
76
80
if ( scope . panel . tooltip . value_type === 'individual' ) {
@@ -99,9 +103,9 @@ function ($) {
99
103
lasthoverIndex = hoverIndex ;
100
104
}
101
105
102
- results . push ( { value : value , hoverIndex : newhoverIndex , series : series } ) ;
106
+ results . push ( { value : value , hoverIndex : newhoverIndex } ) ;
103
107
} else {
104
- results . push ( { value : value , hoverIndex : hoverIndex , series : series } ) ;
108
+ results . push ( { value : value , hoverIndex : hoverIndex } ) ;
105
109
}
106
110
}
107
111
@@ -150,7 +154,12 @@ function ($) {
150
154
151
155
for ( i = 0 ; i < seriesHoverInfo . length ; i ++ ) {
152
156
hoverInfo = seriesHoverInfo [ i ] ;
153
- series = hoverInfo . series ;
157
+
158
+ if ( hoverInfo . hidden ) {
159
+ continue ;
160
+ }
161
+
162
+ series = seriesList [ i ] ;
154
163
value = series . formatValue ( hoverInfo . value ) ;
155
164
156
165
seriesHtml += '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">' ;
You can’t perform that action at this time.
0 commit comments