New benchmark reveals AI struggle with interactive charts
Researchers have introduced ChartInt, a new benchmark that shows multimodal models often fail to generate interactive code even when they can mimic static.
Source: Grafy Research LabMultimodal large language models (MLLMs) are increasingly capable of turning images into executable code, but they often fail when those visualizations require interactivity. A new study introduces ChartInt, a benchmark designed to test whether AI can move beyond static images to create charts that respond to user actions like hovering or clicking.
Why do current AI benchmarks fail at interactivity?
According to researchers from Renmin University of China, existing benchmarks for chart-to-code generation primarily focus on "visual consistency." This means models are evaluated on how closely their output matches a static image in terms of appearance. However, real-world data exploration relies on interactive charts where states evolve dynamically.
As the authors note, evaluating these interactive capabilities requires assessing "behavioral consistency." This involves ensuring that a chart's state changes correctly in response to a sequence of user interactions. Traditional one-step evaluation methods, which simply compare a final image to a reference, are ineffective for these complex, event-driven behaviors. To solve this, the researchers developed a "preset state snapshot protocol" that uses programmatic API calls to trigger specific interaction states, allowing for reproducible and deterministic evaluation of how a model's code handles dynamic changes.
What makes ChartInt different from other benchmarks?
Unlike previous frameworks like ChartX or Plot2Code, which concentrate on static reconstruction or basic code executability, ChartInt introduces a multi-task framework. The researchers built the benchmark using the ECharts framework and included several distinct categories of tasks.
Beyond simple static reconstruction, the benchmark includes interaction verification and real-world editable tasks. These tasks involve updating data, adjusting styles, and performing cross-chart style transfers. The authors highlight that cross-chart style transfer is a particularly difficult task, as it requires the model to preserve the underlying data semantics while simultaneously applying new visual encoding rules from a different chart style. This pushes the model to demonstrate both deep semantic understanding and high-level visual expression.
How do models perform on interactive tasks?
Experimental results presented in the paper reveal a significant gap between a model's ability to reproduce a static image and its ability to handle interaction. The researchers found that strong performance in static visual reconstruction does not necessarily guarantee that a model can handle correct interaction behaviors or provide reliable usability in real-world scenarios.
This phenomenon is described as the "static-dynamic gap." A model might successfully write code that looks exactly like the input image, but that code may fail to respond correctly when a user attempts to hover over a data point or click a legend. This "dynamic fragility" suggests that current MLLMs are often learning shortcuts to mimic visual patterns rather than truly understanding the underlying logic of the visualization code and its interactive state transitions.
What are the implications for developers and researchers?
For those building intelligent analytics systems or automated data workflows, these findings suggest that visual accuracy is only one part of the equation. If an AI-generated dashboard looks correct but breaks when a user tries to filter data or zoom in, its practical utility is severely limited.
The study emphasizes that the next frontier for MLLMs in the domain of data visualization is not just "seeing" the chart, but understanding the executable logic that drives it. Developing models that can handle complex state transitions and realistic editing tasks—such as modifying a dataset or transferring a brand's style across multiple charts—will be essential for creating truly useful AI-driven visualization tools.
How can you apply these insights in Grafy?
While ChartInt is a research benchmark, the challenges it identifies are central to the work of developers using AI to build interfaces. If you are working on complex data-driven applications or trying to automate the generation of interactive web components, you can use Grafy Code to experiment with different model outputs. By testing how various models handle ECharts or other visualization libraries, you can observe firsthand the nuances of how they translate visual intent into functional, interactive code.
Frequently asked questions
What is the main goal of the ChartInt benchmark?
ChartInt aims to evaluate how well multimodal large language models can generate code for interactive charts. Unlike previous benchmarks that only check if a chart looks like a static image, ChartInt tests if the generated code behaves correctly when users interact with it, such as through clicking or hovering.
Why is behavioral consistency important for charts?
Behavioral consistency ensures that a chart responds to user inputs in a predictable and correct way. In real-world data analysis, users rely on interactive elements to explore data. If the code does not manage state transitions correctly, the chart will fail to provide the necessary information during exploration.
Does being good at static charts mean a model is good at interactive ones?
No, the research shows that high performance in static visual reconstruction does not translate to success in interactive tasks. Models can often mimic the appearance of a chart without understanding the underlying logic required to make that chart interactive, leading to what researchers call dynamic fragility.


