-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Cannot set color scheme for dashboard-associated chart even when dashboard color scheme is cleared #23874
Comments
Any update/workaround on this issue? Im facing the same problem |
+1. I also don't have any color scheme specified on dashboard level, but chart level scheme is still block. As a workaround, when I need to change color scheme of the chart, I delete chart from dashboard, edit its color scheme and then add back. |
+1; I updated to version 3.0.0rc4 and when I clear the dashboard color scheme and save, it appears that it still blocks the chart level. I also noticed that the dashboard reverts back to having a color scheme despite having cleared and saved it – though perhaps this is another issue. |
It's been a while since this issue was commented on, but I believe this is still an issue in current |
Thanks. I am looking into this |
We are also facing the same issue- Everytime we refresh the dashboard- The chart color is getting changed- We tried clearing the color scheme of Dashboard but it is not getting reflected, for this reason we are unable to change the color scheme of the chart as well |
Any update on this issue? |
This is still an issue AFAIK. |
Is there anyone working on the issue at the moment?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Evan Rusackas ***@***.***>
Sent: Monday, June 3, 2024 8:09:16 PM
To: apache/superset ***@***.***>
Cc: Orwa Diraneyya ***@***.***>; Comment ***@***.***>
Subject: Re: [apache/superset] Cannot set color scheme for dashboard-associated chart even when dashboard color scheme is cleared (Issue #23874)
This is still an issue AFAIK.
—
Reply to this email directly, view it on GitHub<#23874 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFZDGTYLTGEAGAHOEGEQIRDZFSWMZAVCNFSM6AAAAAAXPX76F6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVHAZDKNZUGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Not that I'm aware of... go for it! |
This is not prioritized still. It would be good for someone to pick this up. Marked this as a good first issue |
Hi @geido, I would like to work on the issue. Can you please guide me on where I should start looking in the codebase? |
Hey @Rohitpandey357 join me on Apache Superset Slack. I am Diego Pucci in there. Let's plan around this. Happy to get you up and running with this! |
Once a chart is associated with a dashboard, it is no longer possible to change its color scheme. In the customize panel, the color scheme dropdown displays the warning:
And disabled the dropdown via this code:
superset/superset-frontend/src/explore/components/controls/ColorSchemeControl/index.tsx
Lines 111 to 121 in 594d3e0
However, if the dashboard does not have a color scheme selected (or it's been cleared), the chart's color scheme is still respected (you can see this by selecting a color scheme for a chart before assigning it to a dashboard without a color scheme). In this situation, it does make sense to change the chart's color scheme, and so the dropdown shouldn't be disabled (the warning could still be shown though).
How to reproduce the bug
""
in the JSON config).Expected results
Since the dashboard has no color scheme set, and the chart's color scheme is thus used, I expect to be able to change it.
Actual results
I am unable to change the chart's color scheme except by removing it from the dashboard, changing the color scheme, and adding it back.
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I can't for the life of me find the exact point in the code where dashboard color scheme is chosen over the chart color scheme when the former is set, but I'm pretty sure that code is going to show that if the dashboard color scheme is unset (or
""
), then the chart color scheme will be used.The text was updated successfully, but these errors were encountered: