Commit 0a13b7c5 by Mitsuhiro Tanda

highlight series name in tooltip when shared tooltip active

parent b7457264
......@@ -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