Chart palette

This commit is contained in:
2015-03-16 14:30:06 +07:00
parent 468b7e14ce
commit edf8affd73
4 changed files with 45 additions and 78 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ var BarChart = React.createClass({
<Bar key={'bar-'+ i}
item={point.item}
value={val}
color={Colors2[i]}
color={Colors[i]}
x={x}
y={y}
offset={offset}
@@ -161,13 +161,13 @@ var StackedAreaChart = React.createClass({
var areas = _.map(paths, function(pair, i) {
var item = pair[0], path = pair[1];
if (item !== null) {
colors[item] = Colors2[i];
colors[item] = Colors[i];
}
return (
<StackedArea key={'area-'+ i}
item={item}
d={roundPathCorners(this.buildPathD(path), 5)}
color={Colors2[i]} />
d={roundPathCorners(this.buildPathD(path), 3)}
color={Colors[i]} />
);
}.bind(this));