codeant-ai-for-open-source[bot] commented on PR #37135:
URL: https://github.com/apache/superset/pull/37135#issuecomment-3781538317
## **Sequence Diagram**
Shows how the timeseries transformer now detects time-comparison series
(including exact name matches), derives a visible dashed pattern per time
offset, and matches comparison series color to the original series. This
captures the primary logic change in the PR.
```mermaid
sequenceDiagram
participant RawData as rawSeries (data)
participant Transformer as transformProps
participant DerivedCheck as isDerivedSeries
participant OffsetResolver as getTimeOffset
participant ECharts as echartOptions.series
RawData->>Transformer: iterate each series entry
Transformer->>DerivedCheck: isDerivedSeries(entry, formData, seriesName)
DerivedCheck-->>Transformer: true/false (detects exact-name or
metric__offset)
alt derived series
Transformer->>OffsetResolver: getTimeOffset(entry, time_compare) ||
seriesName
OffsetResolver-->>Transformer: offset key
Transformer->>Transformer: assign offset index & compute visible
dash [dash,gap]
Transformer->>ECharts: set series.lineStyle.type (visible dash) and
opacity; set connectNulls
Transformer->>DerivedCheck: find originalSeries (negate
isDerivedSeries) for color match
DerivedCheck-->>Transformer: original series found
Transformer->>ECharts: use original series key for colorScale (color
matching)
else not derived
Transformer->>ECharts: leave series as solid (no dash) and default
color
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]