Deconstructing And Restyling SVG Charts Using Large Language Models

Loading...
Thumbnail Image

Date

2025-04-10

Authors

Zaidi, Syed Muhammad Ali Raza

Journal Title

Journal ISSN

Volume Title

Publisher

Abstract

SVG charts are very common on the Web, however, reusing, editing and restyling these charts is very difficult. To facilitate this process, this thesis explores the challenges of extracting data and visual encodings from SVG chart images and restyling them based on user queries. We leverage large language models (LLMs) to facilitate this process using few-shot prompt approaches, enabling users to deconstruct and restyle existing Vega-Lite visualizations through natural language input. Our evaluation on 800 SVG charts and 250 natural language queries reveals that our system accurately deconstruct 93.4% charts and successfully restyled 38.6% queries. Finally, based on the above techniques, we develop a Chrome plugin tool that detects and deconstructs SVG charts from the web page and then restyles the charts based on user input.

Description

Keywords

Citation