Bird
Raised Fist0

How can you combine a date histogram and a terms aggregation in one visualization to show sales by product over time?

hard🚀 Application Q9 of Q15
Elasticsearch - Kibana and Visualization
How can you combine a date histogram and a terms aggregation in one visualization to show sales by product over time?
ACreate a pie chart with date histogram and terms aggregation
BUse a metric visualization with both aggregations
CUse a line chart with date histogram on X-axis and terms aggregation as split lines
DApply a gauge visualization with date histogram
Step-by-Step Solution
Solution:
  1. Step 1: Understand combined aggregations

    Date histogram groups data by time, terms aggregation splits data by product.
  2. Step 2: Select visualization type

    Line charts can show multiple lines for each product over time using these aggregations.
  3. Final Answer:

    Use a line chart with date histogram on X-axis and terms aggregation as split lines -> Option C
  4. Quick Check:

    Time + category split = Line chart with splits [OK]
Quick Trick: Combine date histogram and terms in line chart splits [OK]
Common Mistakes:
MISTAKES
  • Using pie chart for time series
  • Choosing metric for multiple groups
  • Applying gauge for time data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes