Skip to content

fix: match config series to data by name, fall back to position#9142

Merged
tomivirkki merged 5 commits intomainfrom
fix/unnamed-multi-series
Apr 17, 2026
Merged

fix: match config series to data by name, fall back to position#9142
tomivirkki merged 5 commits intomainfrom
fix/unnamed-multi-series

Conversation

@tomivirkki
Copy link
Copy Markdown
Member

@tomivirkki tomivirkki commented Apr 16, 2026

Summary

  • Series configuration templates (names, plotOptions, yAxis) are matched to data series by name first, with positional fallback for unmatched ones, so LLM-specified legend labels always take effect without swapping data under the wrong labels when SQL returns series in a different order than the config
  • Previously, applySeriesConfig only matched by name, which failed for unnamed multi-query series (e.g., candlestick + volume) and for _SERIES-named series where the config used different labels

Before:
Screenshot 2026-04-16 at 17 10 46

After:
Screenshot 2026-04-16 at 17 12 45

🤖 Generated with Claude Code

tomivirkki and others added 4 commits April 16, 2026 16:51
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tomivirkki tomivirkki requested a review from ugur-vaadin April 16, 2026 14:14
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tomivirkki tomivirkki changed the title fix: apply series config names to data series by position fix: match config series to data by name, fall back to position Apr 17, 2026
@sonarqubecloud
Copy link
Copy Markdown

@tomivirkki tomivirkki added this pull request to the merge queue Apr 17, 2026
Merged via the queue into main with commit 83827cd Apr 17, 2026
9 checks passed
@tomivirkki tomivirkki deleted the fix/unnamed-multi-series branch April 17, 2026 17:58
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.2.0-alpha3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants