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

Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' #2589

Closed
victor-pluta opened this issue May 14, 2024 · 1 comment

Comments

@victor-pluta
Copy link

Describe/explain the bug
When trying to use the the colour scheme 'tableau10' chart(s) error with "Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' ", only tested on Funnel, Bar and Pie charts

To Reproduce
pass the following data to the colors prop, { scheme: 'tableau10' }

Expected behavior
charts inherits the colours from the given scheme

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • Browser: Chrome

Additional context
Deps:
"@nivo/bar": "^0.86.0",
"@nivo/core": "^0.86.0",
"@nivo/funnel": "^0.86.0",
"@nivo/pie": "^0.86.0",

reference:
https://nivo.rocks/guides/colors/

@plouc
Copy link
Owner

plouc commented May 14, 2024

@victor-pluta, this color scheme was introduced in 0.87.0, that's why you don't have it.

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

2 participants