codeant-ai-for-open-source[bot] commented on PR #38458:
URL: https://github.com/apache/superset/pull/38458#issuecomment-4043064349

   ## **Sequence Diagram**
   
   This PR updates MapBox overlay rendering so cluster circles are never 
smaller than single points by applying a shared minimum radius floor. It also 
scales cluster size by absolute label magnitude to keep zero and negative 
values visible and safe to render.
   
   ```mermaid
   sequenceDiagram
       participant Chart
       participant Overlay
       participant RadiusScaler
       participant Canvas
   
       Chart->>Overlay: Redraw visible map markers
       Overlay->>RadiusScaler: Derive safe max magnitude from cluster labels
   
       loop For each visible marker
           alt Cluster marker
               Overlay->>RadiusScaler: Scale radius with minimum floor and 
label magnitude
               RadiusScaler-->>Overlay: Return cluster radius and formatted 
label
               Overlay->>Canvas: Draw cluster circle and text
           else Single point
               Overlay->>Canvas: Draw point with shared minimum based radius 
rules
           end
       end
   ```
   
   ---
   *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]

Reply via email to