codeant-ai-for-open-source[bot] commented on PR #38458:
URL: https://github.com/apache/superset/pull/38458#issuecomment-4035328301
## **Sequence Diagram**
This PR updates the MapBox scatter plot overlay so cluster bubble sizes are
mapped to a safe radius range, ensuring clusters are never smaller than
individual points and remain visible even with zero or negative aggregation
values.
```mermaid
sequenceDiagram
participant User
participant MapBoxChart
participant ScatterPlotOverlay
participant Canvas
User->>MapBoxChart: View map with clustered data
MapBoxChart->>ScatterPlotOverlay: Request redraw with locations
ScatterPlotOverlay->>ScatterPlotOverlay: Compute cluster labels and safe
max label
ScatterPlotOverlay->>ScatterPlotOverlay: Clamp label to zero or higher
and map to min to max radius
ScatterPlotOverlay->>Canvas: Draw cluster and point arcs with scaled
radius
Canvas-->>User: Render map where clusters are at least as large as
single points and always visible
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]