Back to brighter colors for metrics-on-canvas

This commit is contained in:
Simon Howe
2016-04-04 21:01:59 +02:00
parent 4ec8b97fef
commit 4ec975018c
2 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import _ from 'lodash';
import d3 from 'd3';
import { formatMetricSvg } from './string-utils';
import { getNodeColorDark as colors } from './color-utils';
import { colors } from './color-utils';
import React from 'react';
@@ -67,13 +67,14 @@ export function getMetricValue(metric, size) {
export function getMetricColor(metric) {
const selectedMetric = metric && metric.get('id');
if (/mem/.test(selectedMetric)) {
return colors('p', 'a');
return 'steelBlue';
} else if (/cpu/.test(selectedMetric)) {
return colors('z', 'a');
return colors('cpu');
} else if (/files/.test(selectedMetric)) {
return colors('t', 'a');
// purple
return '#9467bd';
} else if (/load/.test(selectedMetric)) {
return colors('a', 'a');
return colors('load');
}
return 'steelBlue';
}

View File

@@ -421,7 +421,7 @@ h2 {
.metric-fill {
stroke: none;
fill: #A0BE7E;
fill-opacity: 0.5;
fill-opacity: 0.7;
}
.shadow {