Create custom color scheme #1599
Answered
by
wyze
melarenina
asked this question in
Q&A
-
Hi, I haven't found anything regarding this topic, but is there a way to create a custom color scheme for my project? And also, is there a way to make this kind of styling in my charts, alternating two colors, dynamically? without having to pass each value for each individual data? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
wyze
Jun 18, 2021
Replies: 1 comment 1 reply
-
You can pass a custom function to the We also have a guide on theming which might help with your color scheme question. https://nivo.rocks/guides/theming |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
plouc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a custom function to the
colors
property and achieve your goal: https://codesandbox.io/s/tender-shtern-pfk6x?file=/src/App.tsxWe also have a guide on theming which might help with your color scheme question. https://nivo.rocks/guides/theming