Commit dd0788d
fix(echarts): fix time shift color matching functionality
The "Match time shift color with original series" checkbox was not working
because time-shifted series names (e.g., "28 days ago") could not be properly
mapped back to their original series for color matching.
This fix adds logic to detect when a series name exactly matches a time
comparison value and finds the corresponding original series to use its
color key, ensuring time-shifted series use the same colors as their
original series when the checkbox is enabled.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 93cb60b commit dd0788d
1 file changed
Lines changed: 19 additions & 1 deletion
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
305 | 323 | | |
306 | 324 | | |
307 | 325 | | |
| |||
0 commit comments