Abstract
The language for expressing comparisons is often complex and nuanced, making supporting natural language-based visual comparison a non-trivial task. To better understand how people reason about comparisons in natural language, we explore a design space of utterances for comparing data entities. We identified different parameters of comparison utterances that indicate what is being compared (i.e., data variables and attributes) as well as how these parameters are specified (i.e., explicitly or implicitly). We conducted a user study with sixteen data visualization experts and non-experts to investigate how they designed visualizations for comparisons in our design space. Based on the rich set of visualization techniques observed, we extracted key design features from the visualizations and synthesized them into a subset of sixteen representative visualization designs. We then conducted a follow-up study to validate user preferences for the sixteen representative visualizations corresponding to utterances in our design space. Findings from these studies suggest guidelines and future directions for designing natural language interfaces and recommendation tools to better support natural language comparisons in visual analytics.
Introduction
Natural Language Interfaces (NLIs) for data visualization, such as Tableau's "Ask Data," have transformed how users interact with data by allowing for intuitive, speech-based queries. However, supporting "comparison" remains a significant linguistic and design challenge. A simple request like "Compare Apple and Microsoft stock" is fundamentally different from a complex query like "Compare high-rated thriller movies to low-rated comedies." This research explores how the linguistic nuances of such queries—specifically cardinality and concreteness—should inform the design of the resulting visualizations.
The Comparison Design Space
To systematically study this problem, the researchers defined a design space for comparison utterances based on two primary axes:
- Cardinality: The number of entities or sets being compared, categorized as 1-1 (one entity vs. another), 1-n (one vs. a set), n (multiple entities in one set), or n-m (one set vs. another set).
- Concreteness: The specificity of the query. Attributes and values can be Explicit (named directly, e.g., "IMDB rating") or Implicit (using vague modifiers like "performance" or "high-rated").
Methodology
The researchers employed a "design-and-then-validate" approach. First, an Elicitation Study involved 16 participants (experts and novices) sketching visualizations for 16 distinct comparison queries across datasets like Netflix shows and Olympic medals. These sketches were qualitatively analyzed to identify recurring design patterns. Second, a Validation Study with 77 participants was conducted using the Amazon Bestselling Books dataset to rank synthesized representative designs, determining user preferences for specific linguistic contexts.
Key Findings and Results
The study revealed that cardinality is the dominant factor influencing visualization preference. Whether a query used explicit or implicit terms had a secondary effect compared to the number of items being compared. However, when queries were implicit, participants expected the system to provide annotations and highlights to explain its interpretation of vague terms.
The Breakdown Preference
A critical insight was the "Breakdown Preference." In many-to-many (n-m) comparisons, users strongly disliked "summary" charts that only showed averages. Instead, they preferred visualizations that showed individual data points—such as grouped bar charts or small multiples—to understand the distribution within the sets.
Visual Design Guidelines
- 1-1 Comparisons: Simple vertical bar charts or adjacent unit charts were the clear winners for direct entity-to-entity comparisons.
- 1-n Comparisons: Sorted multi-bar charts, with the "singleton" entity highlighted, were preferred over aggregated "average" bars.
- n-m Comparisons: Grouped bars or small multiples were favored to maintain the visibility of underlying data, reflecting a desire to see the "why" behind the comparison.
- Orientation and Simplicity: While vertical bars are standard for 1-1, horizontal bars are often preferred for larger sets (1-n, n-m) to accommodate long labels. Conversely, complex charts like scatterplots and boxplots were consistently ranked lowest due to their higher cognitive load for direct comparative tasks.
Conclusion and Future Work
This work highlights that NLIs must be "linguistically aware." By dynamically adjusting visualization designs based on the cardinality and concreteness of a user's query, systems can better align with user intent. Future research should address how these preferences scale to larger datasets and how designs should evolve in conversational contexts where comparisons happen in a sequence of follow-up questions.
Summary updated