fixed chart colors

This commit is contained in:
cubedro 2015-04-06 21:02:18 +03:00
parent b173cbbcac
commit 7bf616f6b8
2 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ var Node = function Node(data)
uptime: 0, uptime: 0,
lastUpdate: 0 lastUpdate: 0
}; };
this.blockHistory = Array(MAX_HISTORY); this.blockHistory = [];
this.uptime = { this.uptime = {
started: null, started: null,
history: [] history: []

View File

@ -149,10 +149,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
tooltipSuffix: 'ms', tooltipSuffix: 'ms',
colorMap: jQuery.range_map({ colorMap: jQuery.range_map({
'0:1': '#10a0de', '0:1': '#10a0de',
'1:5000': '#7bcc3a', '1:1000': '#7bcc3a',
'5001:12000': '#FFD162', '1001:3000': '#FFD162',
'12001:20000': '#ff8a00', '3001:7000': '#ff8a00',
'20001:': '#F74B4B' '7001:': '#F74B4B'
}) })
}); });
} }