Chart palette
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user