ChartGen: Scaling Chart Understanding Via Code-Guided Synthetic Chart Generation

Jovana Kondic, Pengyuan Li, Dhiraj Joshi, Zexue He, Shafiq Abedin +10 more
5/31/2025
9 citations
cs.HCcs.AIcs.CV

Official code: SD122025/ChartGen (10 stars, Python, CC-BY-4.0, last commit 2025-05-16).

Abstract

Chart-to-code reconstruction -- the task of recovering executable plotting scripts from chart images -- provides important insights into a model's ability to ground data visualizations in precise, machine-readable form. Yet many existing multimodal benchmarks largely focus primarily on answering questions about charts or summarizing them.

Show full abstract

To bridge this gap, we present ChartGen, a fully-automated pipeline for code-guided synthetic chart generation. Starting from seed chart images, ChartGen (i) prompts a vision-language model (VLM) to reconstruct each image into a python script, and (ii) iteratively augments that script with a code-oriented large language model (LLM). Using ChartGen, we create 222.5K unique chart-image code pairs from 13K seed chart images, and present an open-source synthetic chart dataset covering 27 chart types, 11 plotting libraries, and multiple data modalities (image, code, text, CSV, DocTags). From this corpus, we curate a held-out chart-to-code evaluation subset of 4.3K chart image-code pairs, and evaluate six open-weight VLMs (3B - 26B parameters), highlighting substantial room for progress. We release the pipeline, prompts, and the dataset to help accelerate efforts towards robust chart understanding and vision-conditioned code generation: https://github.com/SD122025/ChartGen/

View on arXivView PDF

Code Implementations(1)

SD122025/ChartGenOfficial100%
CC-BY-4.0
100PythonMay 15, 20251 years agoCC-BY-4.0

Similar Papers

Cite this paper

@article{kondic2025chartgen,
  title  = {ChartGen: Scaling Chart Understanding Via Code-Guided Synthetic Chart Generation},
  author = {Jovana Kondic and Pengyuan Li and Dhiraj Joshi and Zexue He and Shafiq Abedin and Jennifer Sun and Ben Wiesel and Eli Schwartz and Ahmed Nassar and Bo Wu and Assaf Arbelle and Aude Oliva and Dan Gutfreund and Leonid Karlinsky and Rogerio Feris},
  year   = {2025},
  eprint = {2507.19492},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.19492v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.19492.svg)](https://codeofpaper.com/paper/2507.19492)

Discussion