Logo image
LLM-augmented narrative generator for data visualizations
Thesis   Open access

LLM-augmented narrative generator for data visualizations

Manohar Adapa
California State University, Sacramento
Master of Science (MS), California State University, Sacramento
11/20/2026
Handle:
https://hdl.handle.net/20.500.12741/rep:14619

Abstract

Automated insight generation Chart narration Data visualization narratives Data-to-Text systems LLM-augmented systems Natural language generation (NLG)
Data visualizations are essential in modern data analysis, but the written narratives that explain them are usually created by hand. This manual process is slow, inconsistent, and can introduce factual mistakes. This project presents DataViz Narrative, a web application that automatically writes natural-language descriptions of data visualizations using a large language model (LLM). The system accepts tabular datasets in CSV, Parquet, Excel, and JSON formats. It profiles and cleans the data, detects personally identifiable information (PII), recommends suitable chart types, renders interactive charts, and produces short, data-grounded paragraphs using the Groq-hosted Llama 3.3 70B model. A central feature of this work is a multi-step evaluation pipeline that checks detectable numeric and qualitative claims against the actual data. Numeric values are matched against summary statistics, and qualitative statements (such as “increasing trend” or “highest category”) are verified against the raw dataset. The system also scores readability, coherence, and overclaim risk. If the combined accuracy of a narrative falls below 90%, the system automatically retries generation up to three times and returns the best result. Sample runs on datasets covering economic indicators, sales records, and customer demographics produced narratives with readability scores in the 60–70 range (on the Flesch scale, meaning they are accessible to a general audience) and low rates of overclaim language. This report describes the complete system design, the logic behind each processing module, and a discussion of limitations and future directions.
pdf
AdapaManohar_Spring2026525.92 kBDownloadView
Text Project Open Access

Metrics

3 File views/ downloads
1 Record Views

Details

Logo image