Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors Documentation Page Doesn't Explain Custom Colors #2629

Open
jwalkerinterpres opened this issue Aug 1, 2024 · 2 comments
Open

Colors Documentation Page Doesn't Explain Custom Colors #2629

jwalkerinterpres opened this issue Aug 1, 2024 · 2 comments

Comments

@jwalkerinterpres
Copy link

Describe/explain the bug
Your color customization page is missing one tiny but critical detail, and it makes it seem as if Nivo can only use pre-defined colors (not custom ones).

One currently has to go all the way to Stack Overflow, where a 20+ vote answer explains how simple custom colors are (they're just arrays of color codes).

To Reproduce

Steps to reproduce the behavior:

  1. Find someone who doesn't know Nivo
  2. Ask them to find how to create a chart with custom colors in the docs
  3. (Watch them read and re-read https://nivo.rocks/guides/colors/ but not find an answer)

Expected behavior

It would only take a tiny addition to the docs to explain this critical detail, eg.

Custom Colors
If you want to use your own color set, simply provide an array of color hex vaues instead of a color scheme, eg.
colors={['#111111', '#222222']}

@tarjep
Copy link

tarjep commented Aug 28, 2024

Been struggling with the same thing. This information is quite crucial to allow for custom colors.

@kamranayub
Copy link

Was just looking for this since I'm trying to use a minimalist style and a single datum with my primary site color 👍

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

No branches or pull requests

4 participants