Skip to content

Create custom color scheme #1599

Answered by wyze
melarenina asked this question in Q&A
Jun 17, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can pass a custom function to the colors property and achieve your goal: https://codesandbox.io/s/tender-shtern-pfk6x?file=/src/App.tsx

We also have a guide on theming which might help with your color scheme question. https://nivo.rocks/guides/theming

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stephent
Comment options

Answer selected by plouc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants