Why AI-Generated Charts Don’t Respond to Clicks—and How Flint-interactive Fixes That
You ask an AI to draw a line chart. Seconds later, you have one. It looks polished: clean axes, sensible colors, readable labels. Then you try to drag-select a range or click a data point for details. Nothing happens. The chart is something you can look at, not something you can operate.
Flint-interactive exists to close that gap. It is an interaction language built on top of Flint, Microsoft Research’s visualization language, and its goal is straightforward: let AI agents produce charts that users can click, brush, zoom, and link—not static images that freeze the moment they render. This article breaks down what it is, how it works, the three usage paths, and the step-by-step setup, with emphasis on what to do and where things tend to break.
AI Is Great at Drawing Charts. Why Does Interactivity Trip It Up?
The short answer: there is no language that is both expressive enough and high-level enough to describe visual interactions. Model capability is not the only bottleneck—the missing abstraction layer is the root cause.
Microsoft Research’s blog lays out the difficulty in clear terms. Here is how I read it.
Generation cost. Agents rarely produce a fully satisfactory interactive visualization in one turn. They reason, write code, debug, and repeat—burning tokens and time at every round. A static chart can be fixed by changing a parameter. An interaction bug often drags a whole chain of logic with it.
Reliability. Expressive interactive charts break easily: layouts go wrong, interactions stop firing. Worse, fixing one thing tends to break another. The blog’s phrasing is worth quoting: “we risk introducing new problems when trying to fix them.” Anyone who has shipped front-end code knows this feeling.
The layer underneath: no language for the job. Some visualization libraries ship built-in interactions, but those are not expressive enough for bespoke charts. Writing from scratch means manipulating renderer-specific marks directly—high barrier, error-prone, hard to maintain. Neither end is comfortable.
Stack those three together and you get an explanation for why stable, high-quality interactive visualization remains hard in practice even with capable frontier models. The problem is not entirely the model. It is the absence of an abstraction that lifts interaction out of low-level rendering code and describes it semantically.
Flint-interactive is that abstraction.
What Exactly Is the Relationship Between Flint and Flint-interactive?
Flint is the foundation—a visualization language. Flint-interactive is the interaction layer built on top of it. Get this dependency straight and the rest of the documentation reads much more easily.
Flint’s own positioning: it lets AI agents reliably create expressive, good-looking, interactive charts from simple, human-editable chart specs. It ships as an MCP server for everyday use with an agent, and as an npm library for embedding charts in applications.
On scale: Flint supports 52 chart types across 5 rendering backends—Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts—through a unified interface. It includes 14 themes and 23 interaction presets. For customization, you can design themes in the Theme Lab and build advanced interactions with the Flint API.

Flint-interactive launched with Flint 1.0 on October 19, 2026, bringing interaction presets, semantic events, and an interaction API that connects charts to your app. The blog’s definition is direct: a language for creating interactive data visualizations on top of Flint, making dashboards, data stories, and interactive artifacts easier to build.
The one-line distinction: Flint handles “draw the chart correctly and well.” Flint-interactive handles “make the chart respond and connect.”
Why Does This Make Interactivity Easier? Semantic Events and High-Level Operators
The core move is separating interaction logic from visual logic. Visual rendering goes to the compiler. You describe “what the user did and what I want to happen” at the semantic level.
Two terms need to be clear before anything else, or the rest of the docs will read like fog.
Semantic events. A user drags a rectangle on a chart. Underneath, that is a chain of raw triggers: mouse down, move, up. Flint’s compiler translates that chain into something meaningful—”the user selected these countries’ data for 1952.” It identifies chart elements and data, not pixel coordinates. The blog puts it this way: the compiler automatically resolves raw triggers such as clicks, drags, and key presses into semantic events that identify chart elements and data.
High-level operators. Commands you issue to the chart in terms of intent. The blog names three: set style to highlight data, set annotation to label a point, set viewport to pan or zoom. You do not touch renderer-specific marks. You say “highlight this selection,” and the compiler turns that into actual canvas changes.
The division of labor: visual logic belongs to the compiler, which handles hit testing, translates update operators into rendered changes, and manages low-level visual updates. Interaction logic belongs to you: map semantic events to update operators, or use those events to update external tables, widgets, or application state.
This separation buys two practical things. First, you do not need to reverse-engineer rendering logic or manipulate renderer-specific marks. Interactions become easier to write and maintain. Second, event generation and visual updates are compositional, so the same model connects Flint not just to charts but to tables, text, other charts, and widgets—enough to build interactive stories and dashboards.

The figure above is the blog’s linked-brush example: brush a group of countries in the 1952 scatterplot, and the 2007 chart highlights the same countries. You write one preset interaction; the compiler resolves the cross-chart dependency.
Three Paths—Find Yours First
Three paths map to three roles, with rising barriers, all sharing the same interaction model underneath. Picking the wrong entry point makes every later step feel off.
| Path | Who it’s for | Entry point | Best for |
|---|---|---|---|
| Use directly in chat | Chart users | Flint-MCP / MCP Apps | Getting an interactive chart in conversation; carrying selections into follow-up turns |
| Build interactive apps | App developers | flint-chart npm library, Flint Interactive Canvas |
Dashboards, data stories, chart-table-document linking |
| Create bespoke interactions | Interaction designers, advanced developers | Programming API | Interactions beyond the presets; custom triggers and handlers |
The first path requires no code. Configure per the MCP setup guide, tell the agent what to chart and which interactions you want, and it generates an interaction_spec alongside the Flint chart spec, rendering an interactive chart directly in the conversation. The blog’s example also notes that users can select a region and pass that context into the next turn.
The second path involves code. Your app receives semantic events from Flint Canvas through event handlers—to filter a table, update another chart, or change application state. In reverse, widgets in your app send update operators to Flint Canvas to control how the chart updates.
The third path is the escape hatch. When presets fall short, define a trigger and a custom handler that maps semantic events to custom chart update sequences.
Using It in Chat: MCP Setup, Step by Step
The goal here is to get the agent to actually reach Flint—and to verify that it does. Skip verification and later problems become impossible to triage: config, model, or spec?
The README includes a setup request you can paste straight into your agent. Here it is broken into three steps.
Step 1: Pick a server form and add it to your client config. Two options: a local stdio server via npx -y flint-chart-mcp, or the hosted HTTP server at https://flint.data-formulator.ai/mcp. Add it the way your client supports, and name the server flint.
Step 2: Verify. Ask the agent to list the available Flint chart types. If it can, the bridge is working. Do not skip this.
Step 3: Run a minimal example. The README’s “how many moons each planet has” example works well—simple data, clear chart type, easy to debug if something goes wrong.
Here is the setup request verbatim:
Help me set up Flint as an MCP server named "flint"!
1. Add it to my client config, using whichever option my client supports:
- a local (stdio) server: npx -y flint-chart-mcp
- the hosted server over HTTP: https://flint.data-formulator.ai/mcp
2. Verify the setup by listing the available Flint chart types.
3. Show me a fun first chart: how many moons each planet has, in a Flint theme you like.
Once that works, be specific about interactions. Do not just say “draw a chart.” Say “let me hover to read each point’s value” or “support brush selection and highlight the selection.” The blog’s example follows this pattern: look up today’s percentage change for the Magnificent Seven tech stocks on Yahoo Finance, compare them in Economist style, and allow hover readouts. The agent can return an in-conversation interactive chart, a static PNG or SVG, or a backend-native spec.
Embedding Interactive Charts in Your App: From Install to a Working onChange
The goal: make the chart part of your application—events flow into your code, and your code can drive the chart. Get the minimal chain working first, then add complexity.
Install. npm install flint-chart. The library compiles Flint specs into backend-native chart specs and provides React and vanilla JavaScript APIs. Install the renderer dependencies your project needs.
Write a minimal spec. A Flint spec consists of data, semantic types, a chart spec, plus optional interaction and theme specs. The compiler resolves these against each other and composes a complete backend-native spec—no glue code on your side.
Semantic types deserve early attention. Fields are described with types like Rank, YearMonth, Delta, Temperature, with domains and units. The compiler uses them to infer parsing, scales, axes, formatting, and colors. Sloppy semantic types mean the compiler guesses—and wrong guesses show up as wrong scales, wrong formatting, wrong colors, while you wonder why the chart type “looks right” but renders wrong.
Pass it to the component. The README’s React example:
import type { ChartAssemblyInput } from 'flint-chart';
import { FlintChart } from 'flint-chart/react';
const spec: ChartAssemblyInput = {
data: { values: [
{ Month: '2026-01', Users: 1200 },
{ Month: '2026-02', Users: 1800 },
] },
semantic_types: { Month: 'YearMonth', Users: 'Quantity' },
chart_spec: {
chartType: 'Line Chart',
encodings: { x: 'Month', y: 'Users' },
},
theme_spec: 'economist',
interaction_spec: { interactions: [{ type: 'inspect-index' }] },
};
<FlintChart spec={spec} />
Two data points, one chart type, one interaction preset. Variables are minimized so a broken chain is obvious. Piling on a complex spec first makes debugging a guessing game across data, semantic types, theme, and interaction—all at once.
Wire up events. Interaction presets are the highest-value starting point; Flint ships 23. The example uses brush-x for horizontal brushing, with onChange receiving phase and state:
import { FlintChart } from 'flint-chart/react';
<FlintChart
spec={{ ...input, interaction_spec: { interactions: [{ type: 'brush-x' }] } }}
onChange={({ phase, state }) => {
if (phase === 'commit') table.filter(state.selected);
}}
/>
Read this line by line. The chart emits a semantic event; your app receives the event and selection state; the state drives something else. phase === 'commit' means the event is staged—commit signals the selection is settled. Fire heavy operations on every change and you will be filtering the table while the user is still dragging. Performance and experience both suffer.

The figure above shows external selection: click the United States row in the table, and the corresponding bubble is emphasized and labeled with GDP per capita of $42,952 and life expectancy of 78.2 years. Table and chart stay in sync because semantic events flow both ways.
Swap themes without touching structure. Theme specs are an independent layer—geometry, typography, and color are reusable. The 14 presets include New York Times, Economist, Swiss, and McKinsey styles. You can inherit one and override only the brand-relevant parts:
theme_spec: { extends: 'economist', id: 'our-brand', ink: { series: { single: '#6b3fa0' } } }
Same chart spec, different theme, no changes to data or chart type. That is the payoff of separating “what it looks like” from “what it shows.”
When Presets Fall Short: How to Approach Bespoke Interactions
Bespoke interactions are the most expressive and the easiest to overbuild. Exhaust the 23 presets first; reach for the programming API only when you must.
The blog’s approach: define a trigger plus a custom handler, then use the programming API to map semantic events to custom chart update sequences. The example highlights a clicked country and labels it by name, combining set-style and set-annotation—without manipulating renderer-specific marks.
Why insist on avoiding renderer marks? Touch them and you are tied to one backend: switching backends means rewriting, and fixes tend to break other things—the “fix one, break another” cycle the blog opens with. With high-level operators, you describe intent and the compiler handles the rest. Maintainability is a different category entirely.

The figure above is a DimpVis-style example: drag a point along a city’s seasonal path and all cities update to the corresponding time of year, with the right panel showing temperature and precipitation for the selected month. A “drag one point, update many” interaction like this is verbose in low-level code and much shorter with semantic events plus update operators.
The README also offers a practical trick for developers: hand the interaction-author agent skill to your coding agent so it adds presets according to known best practices instead of improvising. Designers can browse the bespoke examples, design a new interaction, turn it into a reusable preset, and propose it on GitHub.
Common Pitfalls, Flagged Early
Pitfall 1: expecting one-shot generation. The blog is explicit—even capable frontier models rarely produce a fully satisfactory interactive visualization in one turn. Treat spec generation as iterative. This is also why semantic descriptions matter: revisions are precise instead of full rewrites.
Pitfall 2: mixing interaction and visual logic. The entire value of this system is the separation. Stuff visual details into interaction handlers and you give up the main benefit while inviting the “fix one, break another” cycle back in.
Pitfall 3: ignoring event phases. phase in onChange is not decoration. Decide whether you respond to the process or the settled result, then pick the stage.
Pitfall 4: skipping config verification. “List the available chart types” in the MCP path is the first diagnostic gate, not a formality.
Pitfall 5: assuming a backend switch means a rewrite. One spec renders to Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts. Do not hardcode backend-specific quirks into your chart or interaction logic.
Pitfall 6: treating semantic types as an afterthought. They drive parsing, scales, axes, formatting, and colors. Fill them carelessly and the compiler guesses—leaving you with a chart that feels wrong without an obvious reason.
Practical Summary and Checklist
If you remember one thing: Flint-interactive lifts interaction out of rendering code into the semantic layer. You describe what the user did and what should happen; the compiler handles the canvas.
Checklist, in order:
-
Pick your path: MCP for chat, npm library for apps, programming API when presets fall short. -
MCP route: add the server to your client config (stdio via npx -y flint-chart-mcp, or HTTP viahttps://flint.data-formulator.ai/mcp), list chart types to verify, run a minimal example. -
App route: npm install flint-chart, install renderer dependencies, get<FlintChart>working with two data points first. -
Label semantic types properly: YearMonth,Quantity,Rank, and friends. -
Add interaction presets: try brush-x,inspect-index,linked-brush, then wire uponChange. -
Run heavy operations on phase === 'commit'; do not fire them on every intermediate change. -
Manage themes separately with theme_spec; extend a preset and override brand-specific pieces. -
For bespoke interactions, write only triggers and handlers using high-level operators—never renderer marks.
At a Glance
-
What it is: an interactive visualization language built on Flint, launched with Flint 1.0 in October 2026. -
What it solves: AI charts that cannot be operated; high generation cost and poor reliability for interactive charts; no high-level language for describing interactions. -
How it works: the compiler resolves raw triggers into semantic events; users describe updates with high-level operators ( set style,set annotation,set viewport). Visual logic goes to the compiler, interaction logic to the user. -
Base capabilities: 52 chart types, 5 backends (Vega-Lite, ECharts, Chart.js, Plotly, Excel), 14 themes, 23 interaction presets. -
Three paths: MCP for chat, npm library for apps, programming API for bespoke work. -
Key code: interaction_specdeclares interactions;onChangereceives semantic events; run heavy work onphase === 'commit'. -
Most common mistakes: skipping config verification, careless semantic types, ignoring event phases, touching renderer marks in bespoke interactions.
FAQ
Is Flint-interactive the same as Flint?
No. Flint is the visualization language foundation—it draws the chart correctly from a spec. Flint-interactive is the interaction layer on top, making charts clickable, brushable, and linkable.
Do I have to write code to use it?
Not necessarily. The MCP path in chat requires no code—just tell the agent what interactions you want. Embedding in apps or building bespoke interactions does require code.
Which rendering backends are supported?
Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts—five in total, through a unified interface.
How many interaction presets are there?
23. When those fall short, use the programming API for bespoke work.
What does phase in onChange do?
It marks the event stage. The example filters the table when phase === 'commit', meaning the selection is settled before heavy work runs.
Do bespoke interactions require manipulating renderer marks?
No. The blog recommends composing high-level operators like set-style and set-annotation instead of touching renderer-specific marks.
Can one spec switch backends?
Yes. A single Flint spec renders across multiple backends and can also produce native Excel charts.
What happens if semantic types are wrong?
The compiler infers parsing, scales, axes, formatting, and colors from them. Wrong types produce a chart that feels off in ways that are hard to name.

