Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Props.colors.domain prevents custom colors #105

Open
tgoldenberg opened this issue Apr 21, 2017 · 0 comments
Open

Props.colors.domain prevents custom colors #105

tgoldenberg opened this issue Apr 21, 2017 · 0 comments

Comments

@tgoldenberg
Copy link

<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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant