dosubot[bot] commented on issue #38197:
URL: https://github.com/apache/superset/issues/38197#issuecomment-3946994393

   <!-- Greeting -->
   Hi @gustavoalcantara! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m 
helping the superset team.
   
   <!-- Answer -->
   Hi! Here's what I found for your questions:
   
   **1. Adding a name to the popup:**
   
   The legacy Mapbox scatter plot has limited tooltip support - it renders 
labels on the canvas rather than interactive popups. For better customization, 
consider using **Deck.gl Scatterplot** instead, which supports interactive 
tooltips.
   
   The safest approach is to **pre-format fields in your SQL query** that 
include the attributes you want displayed (like name), then include those 
fields in your chart configuration. Superset will automatically show them in 
tooltips.
   
   Alternatively, you can configure a **JavaScript tooltip generator** like:
   ```javascript
   (d) => '<div>${d.object.extraProps.territory}</div>'
   ```
   However, this [requires enabling `unsafe-eval` in CSP and is not recommended 
for 
production](https://github.com/apache/superset/issues/36779#issuecomment-3678688759).
   
   **2. Interactive map with cross-filtering:**
   
   Superset has [cross-filtering 
capabilities](https://github.com/apache/superset/discussions/37095#discussioncomment-15484316),
 but it's more modular than tools like Power BI or Tableau. Current options 
include:
   - **Dashboard cross-filtering** via a pub/sub event system
   - **Drill By** (right-click → select another dimension)
   - **Drill to Detail** (drill from aggregates to raw records)
   - **Dashboard-to-Dashboard navigation** using URL parameters and native 
filters
   
   Map-specific cross-filtering UX improvements are [actively being 
developed](https://github.com/apache/superset/discussions/37667), including a 
"Drill to Dashboard" feature where clicking a map point would apply that 
selection as a filter.
   
   For now, using **native filters** with URL parameters is the recommended 
approach for linking map selections to other charts.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/3c69664e-7ef6-44cd-a22a-795eb177b947?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Hi%21%20Here%27s%20what%20I%20found%20for%20your%20questions%3A%0A%0A%2A%2A1.%20Adding%20a%20name%20to%20the%20popup%3A%2A%2A%0A%0AThe%20legacy%20Mapbox%20scatter%20plot%20has%20limited%20tooltip%20support%20-%20it%20renders%20labels%20on%20the%20canvas%20rather%20than%20interactive%20popups.%20For%20better%20customization%2C%20consider%20using%20%2A%2ADeck.gl%20Scatterplot%2A%2A%20instead%2C%20which%20supports%20interactive%20tooltips.%0A%0AThe%20safest%20approach%20is%20to%20%2A%2Apre-format%20fields%20in%20your%20SQL%20query%2A%2A%20that%20include%20the%20attributes%20you%20want%20displayed%20%28like%20name%29%2C%20then%20include%20those%20fields%20in%20your%20chart%20configuration.%20Superset%20will%20automatically%20show%20them%20in%20tooltips
 
.%0A%0AAlternatively%2C%20you%20can%20configure%20a%20%2A%2AJavaScript%20tooltip%20generator%2A%2A%20like%3A%0A%60%60%60javascript%0A%28d%29%20%3D%3E%20%27%3Cdiv%3E%24%7Bd.object.extraProps.territory%7D%3C/div%3E%27%0A%60%60%60%0AHowever%2C%20this%20%5Brequires%20enabling%20%60unsafe-eval%60%20in%20CSP%20and%20is%20not%20recommended%20for%20production%5D%28https%3A//github.com/apache/superset/issues/36779%23issuecomment-3678688759%29.%0A%0A%2A%2A2.%20Interactive%20map%20with%20cross-filtering%3A%2A%2A%0A%0ASuperset%20has%20%5Bcross-filtering%20capabilities%5D%28https%3A//github.com/apache/superset/discussions/37095%23discussioncomment-15484316%29%2C%20but%20it%27s%20more%20modular%20than%20tools%20like%20Power%20BI%20or%20Tableau.%20Current%20options%20include%3A%0A-%20%2A%2ADashboard%20cross-filtering%2A%2A%20via%20a%20pub/sub%20event%20system%0A-%20%2A%2ADrill%20By%2A%2A%20%28right-click%20%E2%86%92%20select%20another%20dimension%29%0A-%20%2A%2ADrill%20to%20Detail%2A%2A%20%28drill
 
%20from%20aggregates%20to%20raw%20records%29%0A-%20%2A%2ADashboard-to-Dashboard%20navigation%2A%2A%20using%20URL%20parameters%20and%20native%20filters%0A%0AMap-specific%20cross-filtering%20UX%20improvements%20are%20%5Bactively%20being%20developed%5D%28https%3A//github.com/apache/superset/discussions/37667%29%2C%20including%20a%20%22Drill%20to%20Dashboard%22%20feature%20where%20clicking%20a%20map%20point%20would%20apply%20that%20selection%20as%20a%20filter.%0A%0AFor%20now%2C%20using%20%2A%2Anative%20filters%2A%2A%20with%20URL%20parameters%20is%20the%20recommended%20approach%20for%20linking%20map%20selections%20to%20other%20charts.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38197)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to