arXiv:2611.02353cs.CLNov 2026

Manuscript Offprint

arXiv:2611.02353

VisCodeBench: a new benchmark dataset for Text-to-Vis reflecting real-world practice

Hy Nguyen, Thomas James Elton, Ella Wilson, Andrew Reeson, Cecile Paris, Josiah Poon, Jonathan K. Kummerfeld

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Generating visualisations from natural language requests (text-to-vis) enables users to explore data more efficiently. While LLMs can complete simple visualisation requests, their performance on challenging ones is not well covered by existing benchmarks. We introduce VisCodeBench, an end-to-end text-to-vis benchmark with 2,672 samples from three different domains: educational, scientific, and general audience scenarios with varying levels of complexity. We benchmark three visualisation systems—Codex, Claude Code, and LIDA—paired with a range of open and commercial LLMs across seven metrics covering execution, chart content, and visual quality. While basic execution is near-solved for strong systems, no system comes close to reproducing the reference data, with the best displayed data similarity reaching only 0.81 and falling to 0.69 on our hardest subset for this metric. We further find that frontier models separate on chart correctness and efficiency, with ClaudeCode-Opus-4.7 improving chart correctness by around 5 points over Codex-GPT-5 while running roughly 20 seconds faster. Separately, we find that system design matters as much as the underlying model: despite both running on GPT-5, Codex clearly outperforms LIDA, showing that the surrounding prompting, execution, and refinement pipeline can shape outcomes as much as the model itself. Finally, latency remains a practical obstacle, as even the strongest systems take 39-78 seconds to produce results. VisCodeBench is available at https://github.com/SAIPLL/VisCodeBench and accessed via a leaderboard; the full dataset is kept private to prevent LLM training use.

1 Introduction

Text-to-Vis is the task of taking a human language request for visualisation of some data and generating code to produce the corresponding visualisation. A range of benchmarks exist for this task, including nvBench (Luo et al., 2021), nvBench2.0 (Luo et al., 2025), ChartX (Xia et al., 2025), Text2Chart31 (Pesaran Zadeh et al., 2024), MatPlotBench (Yang et al., 2024), and Text2Vis (Rahman et al., 2025). However, most of these datasets are synthesised or automatically constructed and do not match real-world use, as shown in our earlier work (Nguyen et al., 2024). Often, the visualisations lack meaningful real-world context, or the generated code follows fixed templates.

We introduce VisCodeBench, a new benchmark dataset for evaluating text-to-vis systems in real-world scenarios. VisCodeBench is based on three sources of data. (1) GitHub-T2V contains 843 samples based on assignment notebooks used in online courses shared on GitHub. (2) arXiv-T2V is comprised of 805 samples from academic papers, collected by contacting authors and requesting the chart, code, underlying data, and a natural language request describing the visualisation. (3) OWID-T2V includes 1,024 samples from https://ourworldindata.org, a publicly accessible platform with data-driven analyses of global issues. After collecting the raw data, expert annotators, each with over four years of coding experience and extensive experience creating academic visualisations, verified and

Figure

Figure 1: A Text-to-Vis system. Left: input data files, code context, and user request. Right: system output.

refined the samples. A range of statistics show that the final datasets are more difficult and realistic than existing benchmarks.

For evaluation, we propose two new metrics in addition to five existing ones. (1) Displayed Data Similarity assesses the similarity of data points displayed in generated and reference charts (Davila et al., 2019), providing a more general, LLM-independent, and flexible alternative to exact-match evaluations used in existing work (Chen et al., 2025; Yang et al., 2024); (2) Accessibility Score measures contrast and spacing of texts displayed on the visualisation images (Miranda-Pena et al., 2024).

We benchmark three visualisation systems—Codex, Claude Code, and LIDA—paired with open (GPT-OSS-20B, Gemma-4-31B, Qwen-3.6-35B) and commercial (GPT-5, Opus-4.7) LLMs. Our results show that basic execution is near-solved for strong systems, with only the small local model failing to reliably produce valid charts. Content fidelity is the harder challenge, as no system reproduces the reference data well. The best displayed data similarity comes from Claude Code with Opus-4.7, but it reaches only 0.81 and falls to 0.69 on OWID-T2V, the hardest subset for displayed data similarity. VisCodeBench separates frontier models: they differ on chart correctness score and efficiency, with ClaudeCode-Opus-4.7 improving chart correctness by around 5 points over Codex-GPT-5 while running roughly 20 seconds faster, making Opus-4.7 the strongest model overall. We further show that a system's design can weigh as heavily as its underlying model: Codex and LIDA share the same GPT-5 backbone, yet on OWID-T2V, LIDA completes only 79% of tasks compared to Codex's 100%, with correctness falling to 54.37% versus 73.67%. Finally, latency remains a barrier to interactive use across every system we test. Together, these findings highlight the challenges of realistic text-to-vis scenarios and demonstrate the value of VisCodeBench in exposing them.¹

References (62)