question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

colorBy not available in ResponsivePie

See original GitHub issue

First of all, thanks for the lib 😄

colorBy is not available in ResponsivePie

You can find find an example here

But i saw it was available in your sandbox with version 0.52.1

Maybe the PieSvgProps type is missing the ColorProps<PieDatum> interface

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nbouliolcommented, May 6, 2019

Hi,

Yes it’s working well using colors={d => d.color}

Thank you 😃

0reactions
gregtalaricocommented, Jun 19, 2019

@plouc nvm i figured it out. for anyone else coming into this issue looking for a way to specify a color scale/set you now just need to pass an object { scheme: 'nivo' }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colors from data not being displayed in Nivo ResponsiveBar
I have a ResponsiveBar component in my React app, but the colors are not being displayed as intended. I have followed the guidelines...
Read more >
Video: Customize a pie chart - Microsoft Support
Then, from the types available, I'll click this one, Pie of Pie, and click OK. In the Pie of Pie Chart, ... Not...
Read more >
Pie chart | nivo
Generates a pie chart from an array of data, each datum must have an id and a value property. Note that margin object...
Read more >
5.2 - What's New - Basics - Handbook - Apache ECharts
In the above universal transition example, you may have noticed that we use a colorBy configuration that was not available in the previous...
Read more >
It's a Big Piece of Pie, It's Amore - ZURB
We started thinking about some of the customer projects we were working on and how having a responsive pie chart would help others...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found