dosubot[bot] commented on issue #36026: URL: https://github.com/apache/superset/issues/36026#issuecomment-3498182157
<!-- Greeting --> Hi @martinkcd! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The Country Map chart uses D3 to render SVG paths for each country and displays tooltip info (country name and metric) in a fixed text layer near the top center of the map. This means the tooltip isn't a floating element that follows the mouse, but rather updates a central label. For countries near the map's edge, this approach can make tooltips feel unresponsive or absent, especially if the region is small or hard to hover due to projection scaling or SVG hitbox limitations. There’s no logic to reposition the tooltip dynamically based on mouse position, which is likely why you’re seeing this issue for edge countries. Improving this would require updating the chart to use floating tooltips positioned near the mouse or enhancing the hit detection for edge regions. You can review the relevant implementation details in the Country Map chart code [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-plugin-chart-co untry-map/src/CountryMap.js#L20-L256). <!-- 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/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c8041b6c-b08c-4d3b-bc54-e190036eea5c?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36026) -- 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]
