-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conditional color fill not supported in BarChart #360
Comments
Hi @namakshenas If this is a bug, (and an easy fix) I might be able to get it in the next release which I'm working on right now |
Hi @AnnMarieW Ok, I'll ask the question on DMC Discord, too. Thanks for reminding me. Here is the working example using only recharts in JS:
(At this moment a horizontal or vertical bar chart is not important for me) So let me rephrase my question: Can you reproduce the above chart using the current capabilities of the DMC? |
That's helpful - in dash, you can't pass functions as props, so it's knot possible to do something like this in dmc right now:
There are some workarounds for this, but it will be a big change and might take a while. It's on the wish list here #356 |
Hi @AnnMarieW I tried different settings and finally found the solution with the current capabilities of the DMC: First I changed the dataset into this by adding a color item:
Then, I removed the
|
@namakshenas Thanks for posting the solution! 🎉 |
Hi,
I'm trying to reproduce a similar bar chart like the following figure:
Here is the data:
I ended up in the following piece of code (I'm getting errors):
Tbh, I have no idea how to reproduce the above figure using
barChart
ofdmc
!The text was updated successfully, but these errors were encountered: