IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation
summary
The gist
Interactive chart code generation requires models to reproduce a reference chart’s appearance and underlying data and correctly implement the state changes triggered by specified user…
In short
The IChart2Code benchmark tests multimodal large language models' ability to generate interactive chart code from natural language requirements. The evaluation uses a browser-based protocol checking execution, data accuracy, and interaction fidelity. A new framework, TRAIL, uses a dual-agent system (Developer and Inspector) to guide code revision based on execution failures.
Key concepts
- IChart2Code Benchmark
- This benchmark consists of 377 tasks across 20 chart types and 13 data families. It provides reference screenshots, task data, and interaction requirements to rigorously test how well AI can produce functional HTML/JavaScript code for interactive charts.
- Evaluation Protocol
- This protocol checks generated code in a sandboxed browser using three dimensions: Executability (does it run?), Data Fidelity (is the data correct?), and Static Visual Correctness (does it look right?). It also assesses Interaction Correctness by testing specific user actions.
- TRAIL Framework
- TRAIL is a dual-agent system with a Developer that writes/revises code and an Inspector that finds implementation errors. The Inspector uses execution trajectories to pinpoint exactly where the code fails, providing structured feedback for targeted repairs.
Terminology used across episodes
This episode discusses
- IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation · Paper Radio
- Qwen3-VL Technical Report
- ChartAct: A Benchmark for Dynamic Chart Understanding
- ChartEditBench: Evaluating Grounded Multi-Turn Chart Editing in Multimodal Language Models
- WebCompass: Towards Multimodal Web Coding Evaluation for Code Language Models
- LLaVA-OneVision: Easy Visual Task Transfer
- WebDevJudge: Evaluating (M)LLMs as Critiques for Web Development Quality
- WebRISE: Requirement-Induced State Evaluation for MLLM-Generated Web Artifacts
- Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
- Benchmarking Multimodal LLMs on Code Generation for Complex Interactive Webpages
- ArtifactsBench: Bridging the Visual-Interactive Gap in LLM Code Generation Evaluation
The paper
IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation · Read on arXiv
School of Big Data and Software Engineering, Chongqing University
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: We're looking at the paper: "IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation".
Title and authors: Tom: So we're looking at this paper called IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation. It sounds like they're trying to figure out how good these models are at making actual interactive chart code, not just static pictures.
Jane: Yeah, that’s right. They’re saying that right now, most of the testing just looks at the final picture and whether it looks okay on its own. But this paper is focused on what happens when you actually interact with that chart, like hovering over a cell or clicking a button.
Lu: Exactly. The core idea here is that generating code for a chart isn't just about drawing the right lines; it's about correctly setting up all those dynamic behaviors and state changes that happen when someone uses it.
Meng: So, what’s the big difference between what they’ve done so far and this IChart2Code benchmark? What are they actually testing that static outputs can't capture?
Tom: Well, they introduced a massive test suite with three hundred seventy-seven different tasks across twenty chart forms and thirteen different data families <ref:2609.32413#pg1>. That gives you a huge variety of things to check, from different types of charts to completely different kinds of underlying data structures.
Jane: And what makes it even more complex is that each task comes with three things: a reference screenshot, some specific local data files for that task, and natural language instructions describing the interaction you want to see.
Lu: That’s the input structure they defined: a multimodal input x, which includes the reference image Iref, a natural language instruction T, and all that task-local data D. The whole point is to see if the model can generate executable HTML code S that handles all three parts correctly.
Meng: So they’re not just asking the AI to draw a chart; they’re asking it to write functional, interactive code that runs in a browser. That’s a big step up from just generating an image file for a chart.
Tom: Right, and it goes deeper than just drawing. They developed this whole evaluation protocol that uses a browser execution gate followed by three specific dimensions: Data Fidelity, Static Visual Correctness, and Interaction Correctness.
Jane: I like how they broke it down into those three parts because that helps separate the different types of errors we can make when generating code for these charts. It tests if the data is right, if the initial look is correct, and crucially, if the interaction actually works as specified.
Title and authors: Lu: The paper points out that conventional metrics just can't capture what happens during those interactions—the functional behaviors that static observations miss. They grounded their judgments in browser-executed interaction evidence to make sure they’re looking at the right things.
Meng: But then there's the framework called TRAIL, which is a dual-agent system with a Developer and an Inspector. How does that change how we look at the problem?
Tom: The Inspector finds implementation failures, and it gives structured repair feedback back to the Developer. It’s like having an automated debugging partner that points out exactly where the code went wrong during execution.
Jane: That sounds really helpful for iterative development because you don't just get a score; you get a concrete instruction on how to fix the code before you even try running it yourself.
Lu: The experimental results show that using TRAIL over direct prompting improves those four evaluation dimensions—Executability, Data Fidelity, Static Visual Correctness, and Interaction Correctness—by about seven point eight nine percent over the baseline models.
Meng: That’s a significant jump when you look at the numbers for different types of errors. The failure rates are around twenty-six point eight percent for data fidelity and forty-one point three percent for static visual correctness, which is pretty high.
Tom: Yeah, but what they found interesting is how TRAIL actually helps reduce those failure rates compared to just asking the model directly. It seems like it’s much better at catching the subtle interaction bugs that only show up when you actually run the code in a sandbox environment.
Jane: So, if you're listening and you're a developer, what does this mean practically? Does it mean we can trust these models more for building user interfaces with charts?
Lu: It suggests that for interactive stuff, the trajectory—the sequence of actions taken in the browser—is really important. The authors argue that using those executed trajectories to locate and guide targeted code revisions provides actionable feedback for fixing those interaction failures.
Meng: From a deployment standpoint, I’m interested in how much overhead this adds. If we have to run things through this dual-agent system for every chart generation, it has to be cost-effective at scale.
Tom: That’s a fair point, Meng. But the paper suggests that the targeted feedback from the Inspector means fewer rounds of guessing and testing on our end. It’s about reducing wasted effort by pinpointing the exact line of code that needs attention because it failed during interaction testing.
Title and authors: Jane: So, to wrap up this part—the conclusion of IChart2Code—they are emphasizing that initial rendering alone isn't enough for interactive chart code evaluation because those specific failures only emerge after execution.
Lu: They operationalize this by using task-specific interaction specifications and browser execution alongside rubric-guided assessment. And they’re using those executed trajectories to find and localize interaction failures, which is a key finding for how we can improve the generation process.
Meng: It sounds like the main implication is that if you want reliable interactive chart code, you need a system that tests it dynamically in a browser rather than just checking if it looks right on paper.
Tom: Exactly. The IChart2Code benchmark gives us the structure to actually test these models against those real-world interaction requirements, which is what we really need when we're shipping something that needs to be interactive and functional.
Jane: It’s a really concrete piece of work because it moves the discussion from "does it look like a chart?" to "does this code actually *do* what I expect when I use it?" so now we know where the gaps are.
Lu: And that's where the future work lies—using these execution trajectories not just for debugging, but maybe for training better models that inherently understand how interactions should flow.
Meng: Well, it’s interesting to see how much effort goes into defining those interaction specifications for all those different chart types and data families. That curation step is probably the hardest part of setting up the benchmark itself.
Tom: It really is a lot of work, but having that structured setup allows us to measure the models fairly against these specific, hard requirements for interactivity.
Jane: So, I think this paper gives us a much clearer picture of what success looks like in generating code that isn't just visually correct but also functionally sound when someone uses it.
Lu: And it shows that the trajectory guided approach with the Inspector is a strong way to narrow down those failures efficiently.
Meng: For me, I’m still waiting to see how they handle the cost of running this whole evaluation protocol at scale on production traffic, but for now, having these detailed failure modes helps us know what to expect when we try deploying these models.
Tom: So that's our take on IChart2Code—it’s a big effort to create a rigorous way to test the dynamic side of chart code generation. We’ll see how this inspires the next set of benchmarks and tools for interactive AI interfaces.
The paper's summary: Tom: So, we've been talking about how models are supposed to make code that actually works when you interact with it, and now we're getting into the summary of this IChart2Code paper.
Jane: Right. Basically, they're saying that just showing a picture of a chart isn't enough for an AI to be good at interactive stuff; you need to test the actual code it writes in a real browser environment.
Lu: They set up this big test suite with three hundred seventy-seven different tasks across twenty chart types and thirteen data families, so they aren't just looking at one specific example.
Meng: That’s a lot of variety. What’s the actual goal of testing that much variety? Is it just to see if the model can handle different chart styles?
Tom: It’s more than that; they are trying to see if the model can consistently generate code that meets specific, complex interaction requirements across all those scenarios.
Jane: They have this evaluation protocol with three main checkpoints: Data Fidelity, Static Visual Correctness, and Interaction Correctness. It’s a way to make sure you test for the data being right, the initial look being okay, and whether the actual clicks or hovers work as expected.
Lu: The core of their argument is that interaction failures—the kind that only show up when you actually run the code—are what matter most. They use this to find those problems in a systematic way instead of just guessing.
Tom: And they introduced TRAIL, which is this dual-agent system with a Developer and an Inspector. The Inspector finds where the code breaks during execution and gives specific instructions on how to fix it for the Developer.
Jane: It’s like having an automated debugger that doesn't just say "it failed"; it says "the tooltip content is wrong because of this specific data point." That makes the feedback actionable.
Meng: From a production standpoint, that structured feedback is valuable, but what about the cost? How much does running this whole execution protocol add to the time or computing power needed for chart generation?
Tom: They show that using TRAIL over just asking the model directly actually improves those four main evaluation dimensions—Executability, Data Fidelity, Static Visual Correctness, and Interaction Correctness—by about seven point eight nine percent on average across all the models they tested.
Jane: seven point eight nine percent is a big jump when you look at how much better it is at catching those subtle interaction bugs that just sneak through a quick glance.
Lu: The authors also found specific failure modes, like missing or extra data for Data Fidelity, or incorrect interaction content for Interaction Correctness. They map those failures to the exact spot in the code where they happen.
Tom: So, what this means for us is that initial rendering is totally insufficient for interactive chart code; you have to test it dynamically in a browser. And with tools like TRAIL, you can pinpoint exactly where the dynamic part failed and get targeted repair instructions.
Jane: It moves the conversation from just checking if the chart *looks* right, to making sure that when a user actually uses it, it *works* right.
Lu: This suggests that using those executed trajectories—the sequence of actions in the browser—is a powerful way to find and guide fixes for those interaction failures.
Meng: It sounds like they’ve built a rigorous way to test this kind of complex code generation, which is important because we need reliable systems when we're deploying things that people actually use.
Tom: Exactly. This benchmark gives us the structure to measure models against these hard requirements for interactivity, and it shows that using execution trajectories provides a path for iterative refinement.
The paper's improvements: Tom: So we've seen how they set up this massive test suite to check interactive chart code, and now we’re looking at what they suggest as improvements for their own method.
Jane: They are saying that just having a benchmark isn't enough; you need a way to actually fix the models using the results.
Lu: They propose TRAIL again, but this time emphasizing how the Inspector gives structured repair feedback tied directly to which specific failure it detected during execution.
Meng: That makes sense for debugging, but what about scaling that inspection process? If we’re running this on a lot of charts, does that dual-agent approach get too slow or expensive?
Tom: The paper says the point is that the feedback is highly targeted. Instead of guessing why the code failed at scale, you know exactly which part needs revision because it failed during an interaction test.
Jane: They also highlight using itemized evidence grounded judging to evaluate those results, which means they’re looking at specific pieces of proof instead of just a general score for Data Fidelity.
Lu: And that’s important because it helps them get closer to what human evaluators are doing when they look at the data, giving them a better measure of how well the AI is actually handling the complexity.
Tom: The results show that with this setup, they saw gains over direct prompting—about seven point eight nine percent improvement across those four key evaluation areas when averaging across different models.
Jane: It means for developers, if they use a system guided by this framework, their models are performing much better at handling the dynamic stuff that makes charts useful.
Meng: So if I’m trying to deploy this on my startup's platform, does this mean I just need to adopt a whole new dual-agent pipeline right now?
Tom: Not necessarily. The idea is that you use these execution trajectories not just for debugging, but as a guide for how the model learns and revises itself iteratively. It changes the generation process itself.
Lu: The big implication here is that interaction trajectories provide actionable feedback to localize failures and guide targeted code revision in interactive chart generation.
Jane: They’re basically saying that to get good interactive code, you need a system that tests it dynamically and then uses execution history to tell the AI exactly what needs fixing.
Tom: It shifts the focus from just checking if the final image is correct to ensuring the entire sequence of user interactions works as intended.
Meng: I’m still cautious about deploying this at scale, but if these results hold up when we run it on our actual user traffic, then this trajectory-guided feedback mechanism seems like a way to reduce the testing cycle needed.
Jane: So, the next step is taking that execution data and using it to train better models that inherently understand how interactions should flow correctly.
Conclusion: Tom: So to wrap up this discussion on IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation, we’re seeing that these models need much more than just a good first draft of code.
Jane: Basically, the authors are showing us that testing interactive chart code has to involve running it in a real browser and checking for specific interaction failures.
Lu: They proved that using a dual-agent framework with an Inspector lets you find those execution errors and get targeted repair instructions, which is pretty solid methodology.
Meng: It’s clear that this level of testing is what separates code that looks okay from code that actually works for a user, but I still have to wonder how scalable this inspection process really gets when we're dealing with millions of charts.
Tom: The numbers are impressive because they show a significant lift in performance—about seven point eight nine percent better across the board when using this method compared to just prompting the model directly.
Jane: It means that if we want AI to generate code for interactive things, we can’t stop at initial rendering; we need that dynamic testing loop.
Lu: The conclusion is that these execution trajectories provide a way to localize those interaction failures and guide iterative refinement in the code generation process.
Meng: So, it points toward a future where AI doesn't just guess the right visual style, but actually verifies the functional behavior through runtime checks.
Tom: Exactly. IChart2Code gives us that rigorous structure to measure models against those hard requirements for interactivity across different chart types and data families.
Jane: It’s a big step toward building AI systems that are truly usable in complex digital environments, not just pretty pictures on a screen.
Lu: The paper lays the groundwork for how we can use these executed trajectories to improve the models themselves, moving beyond just fixing the code for this specific benchmark.
Meng: I’m still waiting to see if this whole process is practical enough for production deployment at scale, but it's definitely a valuable framework to study.
Tom: Well said, Meng. It’s a lot of work building that structure, but having that concrete way to measure and fix interaction failures is the path forward.
Jane: So that’s the summary of IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation.
Lu: Next time, we might look at how these trajectory ideas connect with other search algorithms for understanding how AI makes decisions in complex environments.
Meng: Makes sense. We'll see what the next paper is about and whether it tackles the practical engineering hurdles this one did not have to worry about.
Tom: Let’s see what’s on the docket next.
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.26500-Multi-Decoder OneRec: Controllable Generative Retrieval for Multi-Objective Industrial Recommendation
- 2607.27976-Load balancing in parallel infinite-server queues with action delay via phase representation
- 2607.28574-Finite Pinwheel Covering
- 2608.07026-PyFlow: An Inter-procedural Static Analysis Framework for Python
- 2608.09305-Dilatations of categories, via their lean formalization
- 2608.16406-SATisfying the High School Identities but not Wilkie's Identity
- 2609.02062-SPAR: Enhancing Industrial-Scale Generative POI Recommendation via Real-World Spatial Perception
- 2609.03661-Point&Spawn: Mid-Air Reference-Free Object Instantiation Using Gaze and Hand Gestures in Extended Reality