Macro-Queries: An Exploration into Guided Chart Generation from High Level Prompts
Christopher J. Lee, Giorgio Tran, Roderick Tabalba, Jason Leigh, Ryan Longman
TL;DR
The paper tackles making data visualization accessible to novices by enabling chart generation from high-level prompts called macro-queries. It presents a modular, LLM-driven pipeline that maps macro-queries to visualizations through prompting guided by Abela's Chart Taxonomy, a text-to-SQL transformation layer, and chart templates, augmented by retrieval-augmented generation. The authors define macro-queries, propose an end-to-end pipeline, and demonstrate preliminary feasibility across diverse chart types, while discussing design rationales, limitations, and potential improvements. The work suggests that macro-queries can broaden access to data exploration across domains, though further work is needed to improve robustness, chart coverage, and interaction fidelity.
Abstract
This paper explores the intersection of data visualization and Large Language Models (LLMs). Driven by the need to make a broader range of data visualization types accessible for novice users, we present a guided LLM-based pipeline designed to transform data, guided by high-level user questions (referred to as macro-queries), into a diverse set of useful visualizations. This approach leverages various prompting techniques, fine-tuning inspired by Abela's Chart Taxonomy, and integrated SQL tool usage.
