Organizations: School of Information, Renmin University of China, Beijing, China · School of Smart Governance, Renmin University of China, Suzhou, China · School of Art and Design, Beijing Forestry University, Beijing, China · School of Information and Software Engineering, University of Electronic Science and Technology of China, Chengdu, China
In recent years, multimodal large language models (MLLMs) have achieved significant progress in chart-to-code generation. However, existing benchmarks mainly focus on static charts, overlooking interactive charts that enable richer and more expressive data exploration. Unlike static chart-to-code generation, which emphasizes visual consistency, interactive chart-to-code evaluation targets behavioral consistency, requiring chart states to evolve correctly under sequences of user interactions, thereby rendering traditional one-step evaluation paradigms ineffective. To address this gap, we introduce ChartInt, the first benchmark specifically designed for interactive chart-to-code generation. ChartInt consists of 2,779 carefully annotated examples covering common interaction patterns such as hover, highlight, and tooltips. Additionally, ChartInt incorporates editing tasks such as data updates, style adjustments, and cross-chart style transfer to expand real-world application scenarios. To enable reliable evaluation of interaction behavior, we propose a preset state snapshot protocol that predefines target interaction states and deterministically triggers interaction events, transforming dynamic behaviors into reproducible evaluation targets. Based on this protocol, we design a multi-dimensional evaluation framework measuring semantic and stylistic consistency. Experiments show that while current MLLMs perform well on static charts, their performance drops significantly on interactive tasks, highlighting the need for interaction-aware benchmarks.
Figures & tables
Figure 1: Interaction primitives and state transitions. Top: Diverse interaction types across charts. Bottom: Dynamic evolution of interaction states from static to hover and click.
Figure 2: Preset state snapshot protocol. Programmatic API calls deterministically activate predefined interaction states, which are captured as rendered snapshots for reproducible evaluation.
Figure 3: Overview of the ChartInt framework. The architecture utilizes an LLM-driven Data Pipeline to synthesize benchmark assets. The central ChartInt Tasks cover three categories: Static Reconstruction (Native & Perturbed), Interaction (verifying dynamic behaviors via deterministic state triggering), and Real-World Editable (Data Update, Style Adjustment, and Style Transfer). Finally, the Evaluation Suite assesses performance using Code Executability, Fine-grained Metrics (OCR, Color), and MLLM-based judgment.
Figure 4: Functional validity and aggregate performance across ChartInt tasks.
Figure 5: Correlation analysis between interaction quality and static performance degradation. The x-axis represents the interaction quality score (0–5) evaluated by GPT, while the y-axis indicates the resulting performance drop in static metrics (calculated as Sstatic−Sinteractive ) across (a) OCR, (b) Visual Logic, (c) Data Fidelity, and (d) Style Consistency.
Figure 6: Qualitative comparison of representative models across the six ChartInt tasks.