GitHub user bsenthilbalu created a discussion: Country Map: Add support for 
labels inside state/province polygons

**Description**
The Country Map visualization in Superset 6 currently supports only hover 
tooltips (which appear centered at the top of the chart). Because the tooltip 
does not follow the cursor and cannot be styled, values are often 
unreadable—especially on US state maps with strong colors.

Requested **Feature:**
Add support for rendering labels inside the polygon, similar to other mapping 
libraries (e.g., ECharts, Mapbox).
Requested capabilities:

- Toggle: **Show Labels**
- Label content options:

-- Region name (ISO‑3166‑2)
-- Metric value
-- region: value combined format
- Label color (light/dark)

- Label font size
- Label position = polygon centroid

**Why this is needed:**

Country Map is now the primary built-in map in Superset 6.
Without labels, dashboards showing state-level metrics (e.g., packages, 
revenue) are difficult to interpret.
Hover tooltip is fixed-position, making it unreadable for maps with many small 
regions.
Many BI tools offer polygon-label rendering as a standard feature.

Version:
Apache Superset 6.x
Screenshot:
<img width="1710" height="886" alt="image" 
src="https://github.com/user-attachments/assets/978bb74a-bb3d-4a0b-9027-ec27825f3bf6";
 />


GitHub link: https://github.com/apache/superset/discussions/38241

----
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