Bar Chart Widget

The Bar Chart widget displays data as vertical or horizontal bars, perfect for comparing values across categories, ranking items, and showing relative performance.

When to Use

Configuration Options

Content Settings

Title (Required)

Examples: "Top Products by Profit", "Revenue by Category", "Monthly Sales"

Data Type (Required)

Options:

Metrics Configuration

For Data by Date:

For Categorized Data:

Metric Field (For Categorized Data)

What it is: The value to measure for each category

Examples:

Metric Display

Format options:

Date Format (For Time Series)

Options: Auto, Day, Month, Quarter, Year

Determines: How time periods are grouped on X-axis

Design Settings

Responsive Width

Desktop/Tablet/Mobile Columns (1-12)

Recommended:

Color Theme

What it controls: Bar colors

Available themes: Blue, Green, Purple, Orange, Red, Gray

Special feature: For profit/revenue metrics, bars can auto-color (green for positive, red for negative)

Show Legend

Options: On/Off (default: On)

When to show: Multi-metric charts (grouped/stacked bars)

When to hide: Single metric charts where title is clear

Chart Height

Range: 200-1000 pixels (default: 450px)

Adjust based on:

Chart Interaction Features

Hover Tooltips

Hovering over bars shows:

Click to Drill Down

Clicking a bar:

Sort and Filter

Use chart controls to:

Example Configurations

Example 1: Top 10 Products by Profit

	Title: Top 10 Most Profitable Products
Data Type: Categorized Data
Metric: Products → Product Performance
Metric Field: total_profit
Metric Display: Currency
Color: Green
Show Legend: Off
Chart Height: 500px
Width: 12 columns

Result: Vertical bars showing 10 products ranked by profit

Example 2: Revenue by Category

	Title: Revenue by Product Category
Data Type: Categorized Data
Metric: Product Categories
Metric Field: total_revenue
Metric Display: Currency
Color: Blue
Show Legend: Off
Height: 450px

Example 3: Monthly Sales Comparison

	Title: Monthly Sales - Last 12 Months
Data Type: Data by Date
Metrics:
  - Revenue (blue)
  - Profit (green)
Date Format: Month
Show Legend: On
Height: 450px
Width: 12 columns

Result: Grouped bars showing revenue and profit for each month

Example 4: Traffic Source Performance

	Title: Orders by Traffic Source
Data Type: Categorized Data
Metric: Traffic Sources
Metric Field: order_count
Metric Display: Number
Color: Purple
Height: 400px

Bar Chart Variations

Grouped Bars

When: Comparing 2-3 metrics across categories

Display: Bars side by side for each category

Example: Revenue and Profit bars for each product category

Stacked Bars

When: Showing composition (parts of a whole)

Display: Bars stacked on top of each other

Example: Total costs broken down into Product Cost, Shipping, Fees

Note: Stacked bars configured through metrics array selection

Best Practices

Bar Quantity

Sorting Strategy

Color Usage

Chart Height Guidelines

Common Mistakes to Avoid

Too Many Bars

Problem: 50 products in one chart - unreadable

Solution: Limit to top 10-15, use data table for complete list

Wrong Metric Type

Problem: Using bar chart for time trends

Solution: Use line chart for trends, bar chart for category comparisons

Poor Color Choices

Problem: Similar colors for different metrics (light blue and dark blue)

Solution: Use contrasting colors (blue and orange, green and red)

Inconsistent Sorting

Problem: Bars in random order

Solution: Always sort by value (descending for "top" charts)

Combining with Other Widgets

Bar Chart + Data Table

Metric Cards + Bar Chart

Multiple Bar Charts

Related Widgets