Closed dbkaplun closed 8 years ago
hi @dbkaplun, you can setup your slices color in chartSeries props, add a key called color in the field you want to add, and also you can control your styles in style key.
chartSeries
color
style
here is an example: https://github.com/react-d3/react-d3-basic/blob/master/example/src/pie.jsx#L17-L49
chartSeries = [ { "field": "<5", "name": "less than 5", "color": "red", "style": { "fill-opacity": .2 } },... ]
hi @dbkaplun, you can setup your slices color in
chartSeries
props, add a key calledcolor
in the field you want to add, and also you can control your styles instyle
key.here is an example: https://github.com/react-d3/react-d3-basic/blob/master/example/src/pie.jsx#L17-L49