codeant-ai-for-open-source[bot] commented on PR #38673:
URL: https://github.com/apache/superset/pull/38673#issuecomment-4066610710
## **Sequence Diagram**
This PR updates timeseries option generation to adapt chart padding and y
axis rendering based on chart height tiers. The flow ensures compact and micro
charts hide nonessential axis and legend elements so the plot remains readable
in dense dashboard layouts.
```mermaid
sequenceDiagram
participant User
participant Chart
participant TransformProps
participant ECharts
User->>Chart: Resize chart to a smaller height
Chart->>TransformProps: Build timeseries options with current height
TransformProps->>TransformProps: Apply height thresholds from timeseries
constants
alt Height is at least 100
TransformProps->>TransformProps: Use proportional y axis ticks and
keep legend
else Height is 60 to 99
TransformProps->>TransformProps: Reduce padding and hide y axis
lines ticks and title
else Height is below 60
TransformProps->>TransformProps: Hide y axis labels and other
decorations
end
TransformProps-->>ECharts: Return responsive chart options
ECharts-->>User: Render readable compact timeseries chart
```
---
*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]