rd3 icon indicating copy to clipboard operation
rd3 copied to clipboard

`Props.colors.domain` prevents custom colors

Open tgoldenberg opened this issue 7 years ago • 0 comments

<AreaChart /> expects colors as a prop. The default is from d3, and the type is function. However, this line makes it difficult to add custom colors for this component:

/* AreaChart.js */
props.colors.domain(seriesNames);

Could there be a check / guard so that custom colors can be used on this component? Thank you.

tgoldenberg avatar Apr 21 '17 07:04 tgoldenberg