GitHub user FrancescoCastaldi added a comment to the discussion: Deck.gl 
scatterplot in the previous version of superset (5) you could switch off the 
Legend, In version 6 this is no longer possible from the designer

In Superset 6, the control panel for several Deck.gl plugins 
(`legacy-preset-chart-deckgl`) was reorganized, and the explicit boolean toggle 
for the legend was omitted from the designer controls, leaving the legend 
component permanently rendered on top of the map container.

You can hide the legend completely using either of the following methods:

### Method 1: Hide via Dashboard Custom CSS (Cleanest Solution)
If the Deck.gl chart is placed on a dashboard, you can hide the legend overlay 
using CSS:
1. Open the dashboard in Edit mode.
2. Click the three dots menu at the top right and select **Edit CSS**.
3. Add the following CSS rule targeting the Deck.gl legend component:

```css
/* Hide Deck.gl map legend */
.deckgl-container .dupa,
.deckgl-container [data-testid="legend"] {
  display: none !important;
}
```
*(In the Deck.gl plugin source `Legend.tsx`, the root container is rendered 
with styled-component class `.dupa` and `data-testid="legend"`).*

If you want to hide it only for a specific chart, target its slice ID:
```css
#slice_123 .deckgl-container [data-testid="legend"] {
  display: none !important;
}
```

### Method 2: Edit Chart JSON Metadata
If you need the legend hidden directly within the standalone chart view:
1. Navigate to **Manage -> Charts** (or `/chart/list/`), find your Deck.gl 
Scatterplot chart, and click **Edit Chart**.
2. In the modal, locate the **Parameters** JSON field.
3. Look for `"legend_position"`. Change its value to `null`:
```json
"legend_position": null
```
4. Save the chart metadata. When `legend_position` is null, `Legend.tsx` does 
not attach position styling and skips rendering the category entries.


GitHub link: 
https://github.com/apache/superset/discussions/42327#discussioncomment-19164782

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to