Automated Visualization Makeovers with LLMs

Siddharth Gangwar, David Antony Selby, Sebastian J. VollmerarXiv 2025 · DOI

Abstract

Data visualization is a critical skill for data practitioners, yet many lack formal design training. This paper presents a multimodal Large Language Model (LLM) pipeline designed to act as an automated "design critic." By integrating image recognition with a structured library of visualization best practices, the system identifies common errors—such as misleading dual axes and truncated baselines—and provides educational feedback. Evaluation on a synthetic dataset shows high reliability in detecting structural errors, offering a scalable solution for improving data literacy.

Introduction

Creating effective charts is both an art and a science. While numerous tools exist to generate visualizations, few provide automated, language-agnostic critiques to help users refine their work. Existing "linter" tools often require access to underlying source code and are limited to specific programming environments. This research addresses these gaps by developing a tool that can analyze both static images (e.g., screenshots) and code snippets, providing actionable and educational feedback to help users understand the "why" behind design improvements.

Methodology

The proposed system utilizes a modular, multi-stage pipeline powered by GPT-4o. The workflow is designed to prevent model overwhelm by decomposing the critique process into discrete steps.

The multi-stage pipeline for automated chart critique and correction.

The pipeline consists of:

  1. Chart Type Detection: Identifying the visualization format (e.g., bar, line, pie).
  2. Rule Loading: Retrieving specific best practices from a JSON library tailored to the detected chart type.
  3. Feature Extraction: Analyzing the visual or code input to identify properties like axis ranges, category counts, and 3D effects.
  4. Issue Detection: Comparing extracted features against the rule library to identify violations.
  5. Feedback Generation: Producing natural language explanations and, optionally, corrected code.

Experimental Setup and Datasets

To evaluate the system, the authors developed a synthetic dataset of 72 visualization images. This dataset covers 12 distinct error types, including improper scales, non-zero baselines, and poor category ordering. Notably, 42% of the images contain multiple concurrent errors to test the model's ability to handle complex scenarios. Each image was manually annotated to establish a ground truth for performance metrics.

Results and Discussion

The system demonstrated exceptional performance in detecting "objective" structural errors. It achieved a perfect F1-score (1.00) for identifying Non-Zero Baselines and Dual Axis Issues. High performance was also noted for Too Many Slices in Pie Charts (0.91) and Improper Axis Range (0.89).

An example of the system detecting dual-axis issues and non-zero baselines in a line plot.

However, the model struggled with more "subjective" aesthetic choices. Performance dropped for Inappropriate Color Choices (0.46) and Overlapping Data Elements (0.63), where visual ambiguity is higher. The system also showed a slight tendency to underestimate the total number of issues in highly complex charts, with a Mean Absolute Error (MAE) of 0.44.

Conclusion and Future Work

This research highlights the potential of multimodal LLMs to serve as pedagogical aids in data visualization. While highly effective at spotting structural misleading tactics, future work is needed to improve reasoning regarding aesthetic and contextual factors. Integrating specialized computer vision models and incorporating raw underlying data could further enhance the system's ability to detect subtle stylistic issues and verify statistical accuracy.

Summary updated

BibTeX
@misc{gangwar2025automated,
  author = {Siddharth Gangwar and David Antony Selby and Sebastian J. Vollmer},
  title = {{Automated Visualization Makeovers with LLMs}},
  year = {2025},
  eprint = {2508.05637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05637},
}
Figure