Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Set AreaChart fill color #341

Open
darioenginius opened this issue Jun 19, 2017 · 0 comments
Open

Set AreaChart fill color #341

darioenginius opened this issue Jun 19, 2017 · 0 comments

Comments

@darioenginius
Copy link

Hi all,
I have a problem setting fill color in AreaChart.
For Line, Bar and Scatter charts I use the colors function (simply return hex string color) and it works fine.
In Area Chart, I have the following error: Uncaught TypeError: props.colors.domain is not a function
If I try to comment the colors property it uses the default color and I don't get errors.
I tried to add colorAccessor function that always return 0, but nothing changed.
How I can change the fill color for Area Chart? And how do it if I need to add more series?
Thanks

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