Commit 03424421 by Torkel Ödegaard

Merge pull request #4493 from mtanda/highlight_tooltip

highlight series name in tooltip when shared tooltip enabled
parents 5d9c3d59 0a13b7c5
......@@ -142,11 +142,16 @@ function ($) {
continue;
}
var highlightStyle = '';
if (item && i === item.seriesIndex) {
highlightStyle = ' style="font-weight: bold;"';
}
series = seriesList[i];
value = series.formatValue(hoverInfo.value);
seriesHtml += '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">';
seriesHtml += '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name"' + highlightStyle + '>';
seriesHtml += '<i class="fa fa-minus" style="color:' + series.color +';"></i> ' + series.label + ':</div>';
seriesHtml += '<div class="graph-tooltip-value">' + value + '</div></div>';
plot.highlight(i, hoverInfo.hoverIndex);
......
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