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,
lastUpdate: 0
};
this.blockHistory = Array(MAX_HISTORY);
this.blockHistory = [];
this.uptime = {
started: null,
history: []

View File

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