Create custom color scheme #1599
-
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.
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.
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