Skip to content

feat: add ChartAITools - #8988

Merged
tomivirkki merged 8 commits into
mainfrom
feat/chart-ai-tools
Mar 26, 2026
Merged

tomivirkki merged 8 commits into
mainfrom
feat/chart-ai-tools

Conversation

@tomivirkki

@tomivirkki tomivirkki commented Mar 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add ChartAITools factory class that creates reusable chart ToolSpec instances decoupled from any specific controller
  • Tools use a chartId parameter for multi-chart support (e.g., dashboards) with a Callbacks interface for state access and mutation

Fixes https://github.com/orgs/vaadin/projects/103/views/3?pane=issue&itemId=165657878

Testing: The new ChartAITools can be tested in proto/ai-dashboard-dev branch (note that everything in that branch is experimental)

🤖 Generated with Claude Code

@tomivirkki
tomivirkki marked this pull request as draft March 23, 2026 13:43
@tomivirkki
tomivirkki force-pushed the feat/chart-ai-tools branch from c5d559b to 6f7bcb1 Compare March 24, 2026 11:57
tomivirkki and others added 4 commits March 24, 2026 15:47
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d better descriptions

- Add plotOptions support (series stacking, dataLabels, markers,
  pie innerSize for donuts, column/bar borderRadius)
- Lowercase enum values for axis types, legend alignment, and
  zoomType to match Highcharts API conventions
- Add axis type enum to xAxis, yAxis, and zAxis schemas
- Support numeric chart height in addition to string
- Replace exporting config with plotOptions (more useful for AI)
- Improve tool and parameter descriptions

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 force-pushed the feat/chart-ai-tools branch from 6f7bcb1 to 6e3fc71 Compare March 24, 2026 14:27
tomivirkki and others added 2 commits March 24, 2026 16:41
…Tools

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 marked this pull request as ready for review March 25, 2026 07:04
@tomivirkki
tomivirkki requested a review from ugur-vaadin March 25, 2026 07:04
@tomivirkki tomivirkki mentioned this pull request Mar 25, 2026
8 of 9 tasks
tomivirkki and others added 2 commits March 26, 2026 10:50
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tomivirkki
tomivirkki added this pull request to the merge queue Mar 26, 2026
Merged via the queue into main with commit da0131e Mar 26, 2026
6 checks passed
@tomivirkki
tomivirkki deleted the feat/chart-ai-tools branch March 26, 2026 09:25
@vaadin-bot

Copy link
Copy Markdown
Collaborator

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

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