Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboards

Tianhao Niu, Ziyu Han, Qiguang Chen, Shiqi Zhou, Baocai Shan, Hengjie Fang, Qingfu Zhu, Wanxiang Che

TL;DR

The paper introduces Dashboard2Code, a novel task challenging multimodal large language models (LMMs) to proactively explore interactive dashboards and reconstruct them by generating the underlying code. To evaluate this, the authors present DashboardMimic, a benchmark of 180 verified Plotly+Dash pairs, alongside an automated evaluation framework that tests both visual and interaction consistency. The findings reveal a massive performance gap between open- and closed-source models, with even the strongest models struggling to replicate complex, interdependent dashboard logic.

What Problem Does This Paper Address?

While automatic data visualization has advanced rapidly—moving from text-to-chart generation to reverse-engineering static images into code (Chart2Code)—these approaches largely ignore how data is consumed in the real world. In practice, data scientists and business analysts rely on interactive dashboards featuring dropdowns, sliders, tabs, and cross-filtering to uncover complex data patterns.

Reconstructing an interactive dashboard from scratch requires more than just passive visual recognition; a model must act as a GUI agent. It needs to proactively click, drag, and filter components, observe how the interface responds, deduce the underlying callback logic, and then write clean, functional code to replicate the entire system. Prior benchmarks either focused on static charts or relied on human-annotated interaction traces, leaving a gap in evaluating an AI's ability to autonomously explore and reconstruct dynamic user interfaces.

Comparison of Dashboard2Code with existing static and video-based code generation tasks.

Methods

The authors frame Dashboard2Code as an active interaction problem. An LMM agent is placed in a lightweight environment driven by Selenium and Google Chrome. At each step, the agent receives visual feedback (screenshots) and optional structured feedback (a pruned DOM tree). It then executes actions (e.g., clicking a dropdown or moving a slider) until it decides to stop and output the final Python code.

To evaluate the generated code without relying on expensive and subjective human reviews, the authors built a fully automated, multi-aspect evaluation framework:

  1. Code Semantic Evaluation: Measures static properties by calculating Key Component Coverage (F1 score of UI elements) and using an LLM to check the functional equivalence of the code structure and callback logic.
  2. Dynamic Interaction Evaluation: An automated testing agent executes a set of predefined tasks (e.g., "Select Option A in the dropdown") on both the original and the generated dashboard. It then compares the internal Plotly JSON specifications to compute a fine-grained Figure Similarity score across four dimensions: Style, Data, Type, and Text.

Datasets

The paper introduces DashboardMimic, the first benchmark specifically designed for the Dashboard2Code task, built on the Python Plotly+Dash framework. It contains 180 dashboard-code pairs:

  • 58 real-world dashboards curated from open-source community repositories.
  • 122 synthetic dashboards generated using an LLM-based data augmentation pipeline to ensure domain and structural diversity.

To prevent models from simply memorizing the open-source code from their pre-training data, the authors implemented a strict Rewrite-and-Refactor pipeline. This included Semantic Anonymization (e.g., renaming standard datasets like "Iris" to generic equivalents) and Data Slicing to ensure the code tokens differed significantly from raw GitHub files while preserving the core interaction logic.

The benchmark construction pipeline, including collection, taxonomy creation, LLM augmentation, and quality assurance.

Key Insights and Ideas

  • Models Use Text as a Crutch: In a counterfactual experiment where visible text elements (labels, titles) were replaced with meaningless strings like "Option1" or "Title1", model performance plummeted. This indicates that current LMMs rely heavily on heuristic text cues to guess what a dashboard does, rather than truly understanding the callback semantics through interaction.
  • The "Transformation Hallucination" Problem: When breaking down visual dimensions, models excel at reproducing chart types and styles but perform worst at replicating the actual data. They often successfully build the interaction skeleton (the causal graph) but fail to reproduce the exact data transformation logic (e.g., a slider moving right might inadvertently decrease data values in the generated version).
  • DOM Information is a Necessity: Models provided with DOM tree information significantly outperformed those relying purely on screenshots. Without the DOM, models struggle with visual grounding and fail to discover interactive components that are hidden or not explicitly obvious on the initial screen.
Figure 3: Break down analysis of different visual di- mensions.

Key Results

  • Top Performer: Google's Gemini 3 Pro achieved the highest overall score of 79.4 (with DOM support). However, on the most complex dashboards (Level 3: Inter-dependent/Circular callbacks), its score dropped sharply to 64.2.
  • Proprietary vs. Open-Source Gap: There is a massive performance chasm. While proprietary models like Gemini 3 Pro and GPT-5.1 (scoring 60.7) showed competent exploration capabilities, the best open-source model, Qwen3-VL-30B-Instruct, scored only 25.1 under the same conditions.
  • Exploration Limitations: Even the best models only achieved a ~64.58% exploration ratio of interactive components, highlighting significant room for improvement in autonomous UI navigation.

Limitations and Future Work

The authors note that DashboardMimic is currently limited to the Plotly+Dash framework in Python. While this provides a clean, callback-driven abstraction for evaluation, it does not capture the full diversity of real-world enterprise tools like Tableau, Looker, or custom React-based stacks. Additionally, the evaluation framework still relies on LLM-as-a-judge components for semantic and visual checks, which introduces high inference costs. Future work will focus on expanding the benchmark to other popular dashboard frameworks and developing more cost-efficient, deterministic evaluation metrics.

Summary updated

BibTeX
@inproceedings{niu2026dashboard,
  author = {Tianhao Niu and Ziyu Han and Qiguang Chen and Shiqi Zhou and Baocai Shan and Hengjie Fang and Qingfu Zhu and Wanxiang Che},
  title = {{Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboards}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1750},
}
Figure