Answering Questions about Charts and Generating Visual Explanations

Dae Hyun Kim
Stanford University

Enamul Hoque
York University

Maneesh Agrawala
Stanford University

To appear in CHI 2020

Abstract

People often use charts to analyze data, answer questions and explain their answers to others. In a formative study, we find that such human-generated questions and explanations commonly refer to visual features of charts. Based on this study, we developed an automatic chart question answering pipeline that generates visual explanations describing how the answer was obtained. Our pipeline first extracts the data and visual encodings from an input Vega-Lite chart. Then, given a natural language question about the chart, it transforms references to visual attributes into references to the data. It next applies a state-of-the-art machine learning algorithm to answer the transformed question. Finally, it uses a template-based approach to explain in natural language how the answer is determined from the chart’s visual features. A user study finds that our pipeline-generated visual explanations significantly outperform in transparency and are comparable in usefulness and trust to human-generated explanations.

Paper PDF (4.2MB)

Supplemental PDF (1.1MB)

Dataset & Code GitHub