fixed node propagation chart tooltip
This commit is contained in:
parent
17c80be29d
commit
d340b08f2a
2
dist/js/netstats.min.js
vendored
2
dist/js/netstats.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/netstats.min.js.map
vendored
2
dist/js/netstats.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -277,7 +277,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
|
|||||||
height: 20,
|
height: 20,
|
||||||
barWidth : 2,
|
barWidth : 2,
|
||||||
barSpacing : 1,
|
barSpacing : 1,
|
||||||
tooltipSuffix: ' ms',
|
tooltipSuffix: '',
|
||||||
chartRangeMax: 8000,
|
chartRangeMax: 8000,
|
||||||
colorMap: jQuery.range_map({
|
colorMap: jQuery.range_map({
|
||||||
'0:1': '#10a0de',
|
'0:1': '#10a0de',
|
||||||
@ -285,7 +285,14 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
|
|||||||
'1001:3000': '#FFD162',
|
'1001:3000': '#FFD162',
|
||||||
'3001:7000': '#ff8a00',
|
'3001:7000': '#ff8a00',
|
||||||
'7001:': '#F74B4B'
|
'7001:': '#F74B4B'
|
||||||
})
|
}),
|
||||||
|
tooltipFormatter: function (spark, opt, ms) {
|
||||||
|
var tooltip = '<div class="tooltip-arrow"></div><div class="tooltip-inner">';
|
||||||
|
tooltip += $filter('blockPropagationFilter')(ms[0].value, '');
|
||||||
|
tooltip += '</div>';
|
||||||
|
|
||||||
|
return tooltip;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user