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

color scheme changes not applying #32184

Open
3 tasks done
x1agy opened this issue Feb 7, 2025 · 2 comments
Open
3 tasks done

color scheme changes not applying #32184

x1agy opened this issue Feb 7, 2025 · 2 comments
Labels
explore:colors Related to the color scheme in Explore

Comments

@x1agy
Copy link

x1agy commented Feb 7, 2025

Bug description

Steps to reproduce:

  1. Go to the chart via the dashboard
  2. Go to the page with the list of charts
  3. Go to the page of the chart that you selected before

No errors are displayed in the browser console, but if you look through the react extensions, you can see that the new color scheme is passed to the component when changed, but is not applied

Screenshots/recordings

untitled.dashboard.mp4

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@dosubot dosubot bot added the explore:colors Related to the color scheme in Explore label Feb 7, 2025
Copy link

dosubot bot commented Feb 7, 2025

Hi @x1agy! I'm here to assist you with bugs, questions, and becoming a contributor. Let's work together to resolve the issue you're experiencing.

I found a similar issue that was previously reported: Cannot set color scheme for dashboard-associated chart even when dashboard color scheme is cleared. This issue was closed with a pull request that fixed the problem by ensuring that colors are retained when the color scheme is not set at the dashboard level [1].

Additionally, the color scheme selection mechanism in Superset involves components like ColorSchemeControl and ColorSchemeControlWrapper, which manage the selection and application of color schemes. If a chart is viewed within a dashboard context, the color scheme might be locked to the dashboard's settings, which could explain why changes are not applying as expected [2][3].

You might want to check if the dashboard has a predefined color scheme that is overriding the chart's color scheme. If the issue persists, reviewing the recent changes in the codebase related to color schemes might provide further insights.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@x1agy
Copy link
Author

x1agy commented Feb 7, 2025

i'm sorry, edited video wrong, here is correct video

untitled.dashboard.1.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explore:colors Related to the color scheme in Explore
Projects
None yet
Development

No branches or pull requests

1 participant