> Markdown version of [AI-Powered Chart](https://vaadin.com/docs/next/components/charts/ai-powered). Section index: [llms.txt](https://vaadin.com/docs/next/components/llms.txt)

# AI-Powered Chart (since V25.2) Flow

AI-Powered Chart lets your users build and update Vaadin Charts visualizations by typing in natural language. The `ChartAIController` from the [AI Support](https://vaadin.com/docs/next/flow/ai-support.md) module wires an `AIOrchestrator` to a `Chart` and a `DatabaseProvider`, so an LLM can inspect the database schema, write SQL queries, and update the Highcharts configuration on the fly.

> **Note: Commercial Feature**
>
> A commercial Vaadin subscription is required to use AI-Powered Chart in your project.
>
> - [Start Free Trial](https://vaadin.com/trial)
>
> - [See Pricing](https://vaadin.com/pricing)

```java
Chart chart = new Chart();
MessageInput messageInput = new MessageInput();

DatabaseProvider databaseProvider = new JdbcDatabaseProvider(dataSource);
ChartAIController controller = new ChartAIController(chart, databaseProvider);

AIOrchestrator.builder(provider, systemPrompt)
        .withInput(messageInput)
        .withController(controller)
        .build();

add(messageInput, chart);
```

Example prompts:

- "Plot monthly revenue for the last year as a column chart."

- "Show revenue by region as a pie chart."

- "Compare 2025 and 2026 quarterly sales side-by-side with a legend."

For the full guide — including state persistence, custom data conversion, and combining several charts with the [Dashboard](https://vaadin.com/docs/next/components/dashboard.md) component — see [AI-Powered Chart](https://vaadin.com/docs/next/flow/ai-support/ai-powered-chart.md) in the AI Support section. The same approach is available for tabular data via [AI-Powered Grid](https://vaadin.com/docs/next/flow/ai-support/ai-powered-grid.md).
