<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.
<AreaChart />expectscolorsas a prop. The default is from d3, and the type isfunction. However, this line makes it difficult to add custom colors for this component:Could there be a check / guard so that custom colors can be used on this component? Thank you.