bito-code-review[bot] commented on PR #35777:
URL: https://github.com/apache/superset/pull/35777#issuecomment-3430166778

   <details open>
     <summary><strong>Interaction Diagram by <a 
href="https://bito.ai#sequence_diagram";>Bito</a></strong></summary>
   
   ```mermaid
   sequenceDiagram
   participant USER as User
   participant DASH as Dashboard
   participant CHART as Chart Component
   participant RENDERER as ChartRenderer<br/>🔄 Updated | ●●● High
   participant STORAGE as LocalStorage Helpers<br/>🔄 Updated | ●●○ Medium
   participant SUPER as SuperChart
   participant BROWSER as Browser Storage
   Note over RENDERER: Legend persistence added<br/>Saves state & scroll 
position
   USER->>DASH: Interact with dashboard
   DASH->>CHART: Render chart component
   CHART->>RENDERER: Initialize with chartId
   RENDERER->>STORAGE: getItem(legend keys)
   STORAGE->>BROWSER: Retrieve saved legend state
   BROWSER-->>STORAGE: Return legend data
   STORAGE-->>RENDERER: Provide saved state
   RENDERER->>SUPER: Render with legend state
   SUPER-->>RENDERER: Legend state changed
   RENDERER->>STORAGE: setItem(legend state)
   STORAGE->>BROWSER: Persist legend changes
   ```
   Critical path: Dashboard-&gt;Chart 
Component-&gt;ChartRenderer-&gt;LocalStorage Helpers-&gt;Browser Storage
   
   
   > **Note:** ChartRenderer now persists legend state and scroll position to 
localStorage per chart ID. This enables legend state to survive page refreshes 
and navigation, improving user experience by maintaining chart legend 
preferences across sessions.
   
   </details>


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