From 523666e660d871321261b3f2c1c72a360f1ca003 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 6 Apr 2015 17:21:22 +0300 Subject: [PATCH] fixed peer propagation colors --- public/js/controllers.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/js/controllers.js b/public/js/controllers.js index 893681d..e0cad05 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -111,9 +111,17 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { }); jQuery('.' + data.id).sparkline($scope.nodes[index].propagation, { type: 'bar', - height: 20, + height: 18, barWidth : 2, barSpacing : 1, + tooltipSuffix: 'ms', + colorMap: jQuery.range_map({ + '0:1': '#10a0de', + '1:5000': '#7bcc3a', + '6000:12000': '#FFD162', + '13000:19000': '#ff8a00', + '20000:': '#F74B4B' + }) }); break;