File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
public/app/plugins/panel/graph Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,16 @@ function ($) {
142
142
continue ;
143
143
}
144
144
145
+ var highlightStyle = '' ;
146
+ if ( item && i === item . seriesIndex ) {
147
+ highlightStyle = ' style="font-weight: bold;"' ;
148
+ }
149
+
145
150
series = seriesList [ i ] ;
146
151
147
152
value = series . formatValue ( hoverInfo . value ) ;
148
153
149
- seriesHtml += '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">' ;
154
+ seriesHtml += '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name"' + highlightStyle + ' >';
150
155
seriesHtml += '<i class="fa fa-minus" style="color:' + series . color + ';"></i> ' + series . label + ':</div>' ;
151
156
seriesHtml += '<div class="graph-tooltip-value">' + value + '</div></div>' ;
152
157
plot . highlight ( i , hoverInfo . hoverIndex ) ;
You can’t perform that action at this time.
0 commit comments