Bug description
Here's how the chart looks in 4.1.3 - it uses the categorical colors and the legend looks right:
Here's the same chart but in my 6.0.0rc2 test environment:
It has switched "Color scheme type" to be "Fixed color" which was a surprise, I would have thought the default should be "categorical palette". Now all the dots are purple - but note that the legend still reflects the categorical palette.
This seems like two bugs: - An unwanted switch to fixed color - The legend didn't switch with it
Once I manually switch to "Fixed color" the legend goes away as expected.
Seems to affect all of my deck.gl scatterplots, here's another:
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
Not applicable
Node version
Not applicable
Browser
Firefox
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] 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.
Comment From: dosubot[bot]
This looks like a real bug: in 6.0.0rc2, deck.gl scatterplots are being auto-migrated to "fixed color" (all points the same color), but the legend still shows the old categorical palette, which is inconsistent. This issue isn't tracked in the docs or issue tracker, but similar problems have been reported in earlier versions and were fixed by syncing color and legend logic in the chart code (example, fix PR). In your case, it seems the migration or upgrade logic is forcing "fixed color" without updating the legend config, leading to the mismatch.
There's no official workaround documented, but you can manually switch the color scheme type back to "categorical" in the chart controls—this should restore the expected color mapping and legend. If you see the legend disappear when you set "fixed color," that's expected behavior. If you continue to see issues, double-check your chart's control panel settings, as legend visibility and color assignment depend on those (discussion, discussion).
If you need to ensure categorical colors and legends work for multi-layer deck.gl charts, the recommended approach is to use the CategoricalDeckGLContainer component, which manages categories, color assignment, and legend rendering (guide).
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
Comment From: sadpandajoe
@DamianPendrak do you know if we changed this lately?
Comment From: DamianPendrak
Not lately, but I can see that the fixed color is the default right now for the color scheme type. Should it be the categorical color? I can create PR
Comment From: DamianPendrak
If that's the case, I added this to Scatter fix to an issue I found. The PR: #35537