Bar Chart
Bar chart is a versatile tool for comparing values across categories, ideal for evaluating and visualizing differences between various groups or data sets. 🚀
This chart is suitable for:
- Category comparison – Easily compare quantitative values across different categories.
- Displaying changes over time – Use horizontal or vertical bars for different periods.
- Distribution analysis – See which categories have the highest or lowest values.
- Frequency distribution visualization – Shows how often certain values appear in the sample.
Typical Use Cases:
- Sales in different regions
- Evaluation across Categories
- Number of users by group
- Comparing company revenues
yml Configuration example
yml
type: bar
title: Quarterly Revenue (By Product Line)
data:
table: demo.cleaned_sales_data
query: 1=1
metrics:
- name: sales
operator: sum
title: sales
x: order_date
granularity: quarter
groupby: product_line
controls:
style:
stack: true
x_axis: { rotate: 90 }