Skip to content

IChart2Code: Benchmarking Multimodal Large Language Models for Interactive Chart Code Generation

Sep 2026 · arXiv.org · Vol abs/2609.32413 · 0 citations · 28 references
Computer Science

TL;DR

This work introduces IChart2Code, a benchmark comprising 377 tasks across 20 chart forms and 13 data families, with 1209 interaction requirements in six families, and proposes TRAIL, a trajectory-guided dual-agent framework for interactive chart code generation.

Abstract

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 interactions. Existing chart-to-code benchmarks focus on static outputs and lack task representations or evaluation protocols for interaction specification, browser execution, and post-interaction verification. We introduce IChart2Code, a benchmark comprising 377 tasks across 20 chart forms and 13 data families, with 1209 interaction requirements in six families. Each task provides a reference screenshot, task-local data, and natural-language interaction requirements, with executable HTML/JavaScript code as the target output. We further develop a browser-based evaluation protocol with an Executability gate and three rubric-guided dimensions: Data Fidelity, Static Visual Correctness, and Interaction Correctness. The protocol tests runtime viability, consistency with task-local data, fidelity of the initial rendering to the reference screenshot, and interaction-induced state changes in a sandboxed browser. A rubric-guided MLLM judge evaluates task-specific items for the three scored dimensions using the collected browser observations and achieves an overall item-level F1 score of 0.8844 against adjudicated human labels. We also propose TRAIL, a trajectory-guided dual-agent framework for interactive chart code generation. An Inspector derives task-specific inspection checks, executes them in the browser, and uses the resulting trajectories to diagnose failures and produce structured repair feedback. Averaged across four MLLMs, TRAIL improves the four evaluation dimensions over direct prompting by 7.89, 4.98, 3.45, and 4.47 percentage points, respectively.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

WebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution Harness

Evaluating WebUI code generation at scale is difficult: outputs may compile and look plausible yet fail under user interaction, and prior benchmarks largely rely on free-form prompts with static checks (build success, screenshots) that miss functional correctness. We introduce WebUIProof, an execution-oriented benchmar...

Yun-Yun Tsai, Yuning Mao, Shi-Qi Wang et al. · 0 citations
Book Open access Oct 2026

AutoFLC: An LLM-Based Flowchart Generation Tool for Legacy Code Repository

Code comprehension remains a major bottleneck in maintaining large-scale legacy code repositories, particularly due to their complex intra-procedural control flows and lack of up-to-date documentation. While textual summaries generated by large language models (LLMs) provide semantic insights, they fail to intuitively...

Yi-Xing Luo, Long-Xing Yang, Xiao-Feng Li et al. · 0 citations
Preprint Oct 2026

InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement Learning

Interactive webpages underpin modern applications, but reproducing both their visual appearance and multi-step behavior remains challenging for multimodal large language models (MLLMs). Scalable training data must capture user actions, state transitions, and expected outcomes, while real-world webpage code is often ent...

Jingyu Xiao, Da-Sen Dai, Yuxuan Wan et al. · 0 citations
#artificial intelligence Preprint Oct 2026

SpecCloak: Probing Harmful Code Generation through Engineering Specifications

The code generation capabilities of large language models (LLMs) can equally be misused to implement harmful functionality, underscoring the need to understand their safety behavior in response to programming requests. While request phrasing is known to influence refusal, it remains unclear whether the form in which co...

Wen-Bin Chen, Jie-Xin Wang, Guan-Ting Wu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.