Bug description
If the library of deck.gl has evolved very positively in Superset 6.0.0rc1 (such as by offering the possibility to add tile base maps like OSM, by adding the "Color Scheme Type" feature...), some features have disappeared compared to version 5.0.0 and version 4.1.
Could we, for example, reintegrate the visualization of the legend ?
As well as the possibility to modify the color and transparency of the borders and the flattening of the polygons?
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
18 or greater
Browser
Chrome
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.
- [x] 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]
The legend visualization, border color/transparency controls, and polygon flattening features for deck.gl visualizations are still present in Superset 6.0.0—they have not been removed from the codebase. Their visibility and behavior depend on configuration: for example, the legend only appears if a metric is selected and the legend position is set, and border color/transparency can be adjusted via the control panel options for stroke color and opacity. You can find these controls in the Polygon layer settings, including fill color, stroke color, opacity, legend position, legend format, and extrusion options. If these features are missing in your UI, check your chart configuration and ensure the relevant options are set. For reference, the implementation is in the following files: Legend.tsx, Polygon.tsx, and controlPanel.ts.
If you still can't access these features, sharing your chart configuration or a screenshot of your control panel could help pinpoint the issue.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
Comment From: SupersetOdT
It seems that the installation of Superset 6.0.0rc1 via docker forgets several files necessary for displaying the the legends of deck.gl maps and customizing the colors of the borders and fills. Do other people have the same problem?
Comment From: rusackas
First report I've heard of it... does it only happen with docker image builds, or do you see this issue when downloading the source and serving it all up manually (docker compose and/or the dev frontend server)?
Comment From: SupersetOdT
Good morning, this happens with a docker-compose. Here is my build:
" FROM apache/superset:6.0.0rc1
ARG INCLUDE_CHROMIUM ENV PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright_browsers
RUN \ apt-get update && apt-get install --yes --no-install-recommends build-essential pkg-config ... &&\ uv pip install --no-cache-dir openpyxl "apache-superset[postgres,playwright,excel]" flower && \
if [ "$INCLUDE_CHROMIUM" = "true" ]; then \
playwright install-deps && \
playwright install chromium; \
else \
echo "Skipping Chromium installation"; \
fi && \
apt-get purge -y --auto-remove build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*
"
Comment From: sadpandajoe
@SupersetOdT i've tried fixing this and I don't know if i have the right repro steps. I tried on an older version of superset and it looks like legend only shows if certain conditions are met. Can you give repro steps or else I'll probably remove this as a blocker from releasing 6.0
Comment From: SupersetOdT
I had uninstalled version 6.0.0rc1 to restore 5.0.0.
I can’t reinstall 'apache/superset:6.0.0rc1' from Docker Hub.
An error appears: " ModuleNotFoundError: No module named 'superset.themes' ".