mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Fixed icons in graph tooltip, not updated after recent font awesome upgrade, Closes #1355
This commit is contained in:
parent
3be11b9861
commit
e411b8e423
@ -163,7 +163,7 @@ function ($) {
|
|||||||
value = series.formatValue(hoverInfo.value);
|
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">';
|
||||||
seriesHtml += '<i class="icon-minus" style="color:' + series.color +';"></i> ' + series.label + ':</div>';
|
seriesHtml += '<i class="fa fa-minus" style="color:' + series.color +';"></i> ' + series.label + ':</div>';
|
||||||
seriesHtml += '<div class="graph-tooltip-value">' + value + '</div></div>';
|
seriesHtml += '<div class="graph-tooltip-value">' + value + '</div></div>';
|
||||||
plot.highlight(i, hoverInfo.hoverIndex);
|
plot.highlight(i, hoverInfo.hoverIndex);
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ function ($) {
|
|||||||
else if (item) {
|
else if (item) {
|
||||||
series = seriesList[item.seriesIndex];
|
series = seriesList[item.seriesIndex];
|
||||||
group = '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">';
|
group = '<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">';
|
||||||
group += '<i class="icon-minus" style="color:' + item.series.color +';"></i> ' + series.label + ':</div>';
|
group += '<i class="fa fa-minus" style="color:' + item.series.color +';"></i> ' + series.label + ':</div>';
|
||||||
|
|
||||||
if (scope.panel.stack && scope.panel.tooltip.value_type === 'individual') {
|
if (scope.panel.stack && scope.panel.tooltip.value_type === 'individual') {
|
||||||
value = item.datapoint[1] - item.datapoint[2];
|
value = item.datapoint[1] - item.datapoint[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user