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

[dashboard][color theme] chart color are changed when refreshing dashboard #26456

Closed
manikarora02 opened this issue Jan 11, 2024 · 4 comments · Fixed by #27439
Closed

[dashboard][color theme] chart color are changed when refreshing dashboard #26456

manikarora02 opened this issue Jan 11, 2024 · 4 comments · Fixed by #27439
Assignees

Comments

@manikarora02
Copy link

chart color is changed when refreshing the dashboard
The chart Color Scheme Keeps changing in the following scenarios :

  1. For the Same User viewing the same dashboard.
  2. For different users viewing the same dashboard.

How to reproduce the bug

  1. Go to the dashboard with multiple charts
  2. Applied color theme to the dashboard, for example, superset color
  3. Refresh dashboard
  4. Observe the color of each chart
  5. See error

Expected results

Refresh dashboard should not change the color of the chart

Actual results

Refreshing the dashboard changes the color of chart

Screenshots

Image 1& 2 shows the same chart with different color schemes opened in a fraction of a few seconds by the same user.
image
image
Images 3 & 4 are color schemes of the same chart for different users.
image
image

Environment

  • browser type and version: Chrome Version 119.0.6045.199
  • superset version: 3.0.1
  • python version: python --version
  • node.js version: node -v
  • any feature flags active:
  1. AVOID_COLORS_COLLISION = True (By default)

Checklist

  • [.] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [.] I have reproduced the issue with at least the latest released version of superset.
  • [.] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

I saw a similar issue happening before and attaching the issue link which is closed for now.
#16970

@goto-loop
Copy link
Contributor

I'm facing the same issue after migrating a dashboard from Superset 2.1.1 to 3.1.0.

As suggested in #16970, disabling AVOID_COLORS_COLLISION has solved the problem, but I see this more as a workaround than a fix because it might introduce issues with other charts in the future.

@geido
Copy link
Member

geido commented Feb 16, 2024

cc @yousoph @eschutho

@progressive-scaler
Copy link

This error happens for me in 3.1.0 version.

In my case, disabling AVOID_COLORS_COLLISION on the config file did not help, so the problem still persists.

@geido
Copy link
Member

geido commented Apr 16, 2024

Working on a solution here #27439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants