Skip to content

Commit

Permalink
Back to brighter colors for metrics-on-canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
foot committed Apr 4, 2016
1 parent 4ec8b97 commit 4ec9750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions client/app/scripts/utils/metric-utils.js
Original file line number Diff line number Diff line change
@@ -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';


Expand Down Expand Up @@ -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';
}
2 changes: 1 addition & 1 deletion client/app/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ h2 {
.metric-fill {
stroke: none;
fill: #A0BE7E;
fill-opacity: 0.5;
fill-opacity: 0.7;
}

.shadow {
Expand Down

0 comments on commit 4ec9750

Please sign in to comment.