Closed psudeepta closed 7 years ago
Use d3 scales
const scale = d3.scale.ordinal().range(['red', 'blue', 'green']);
or custom function
const scale = value => {
// some color selection
return 'black';
};
and pass as a prop
<BarChart
groupedBars
colorScale={scale}
/>
Thanks again @solomein !
Thanks @solomein and @codesuki
It works as expected
how to change the color of a grouped BarChart?Could you please provide some examples