Merge pull request #53 from cubedro/develop

Fixed peer propagation colors
This commit is contained in:
Marian OANCΞA 2015-04-06 17:21:46 +03:00
commit df396cb81a

View File

@ -111,9 +111,17 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
}); });
jQuery('.' + data.id).sparkline($scope.nodes[index].propagation, { jQuery('.' + data.id).sparkline($scope.nodes[index].propagation, {
type: 'bar', type: 'bar',
height: 20, height: 18,
barWidth : 2, barWidth : 2,
barSpacing : 1, barSpacing : 1,
tooltipSuffix: 'ms',
colorMap: jQuery.range_map({
'0:1': '#10a0de',
'1:5000': '#7bcc3a',
'6000:12000': '#FFD162',
'13000:19000': '#ff8a00',
'20000:': '#F74B4B'
})
}); });
break; break;