Allow custom Graph colors (#76)

This commit is contained in:
Hugo Manrique
2017-04-03 23:10:46 -04:00
committed by Cryptkeeper!
parent 42c744b9dd
commit 0955e8dbcd
6 changed files with 37 additions and 6 deletions

View File

@ -117,12 +117,12 @@ function convertGraphData(rawData) {
var keys = Object.keys(rawData);
for (var i = 0; i < keys.length; i++) {
for (var i = 0; i < keys.length; i++) {
data.push({
data: rawData[keys[i]],
yaxis: 1,
label: keys[i],
color: stringToColor(keys[i])
color: getServerColor(keys[i])
});
}