Setup Bar Chart Comparisons
Create effective bar charts for comparing performance across categories, products, and segments. Learn grouping, stacking, and analysis techniques.
Overview
Bar charts enable categorical comparisons using vertical axis metrics with group-by capabilities. This guide covers Bar Chart widget configuration based on the actual Analytics implementation.
Perfect for: Category comparisons, product rankings, geographic analysis, channel performance, and any categorical data comparison.
Time Required: 10-15 minutes per bar chart
When to Use Bar Charts
Bar charts excel at comparing values across different categories and are ideal for:
Compare and rank categories:
Top-performing products by revenue
Best-converting traffic sources
Highest-engagement content categories
Most profitable customer segments
Why Bar Charts: Instantly show ranking and relative performance differences
Guide investment and focus decisions:
Marketing budget allocation by channel
Inventory planning by product category
Staff allocation by department performance
Geographic expansion priorities
Why Bar Charts: Clear visualization of where resources deliver best results
Spot underperforming areas:
Categories with declining sales
Channels with poor ROI
Products with low engagement
Regions with conversion issues
Why Bar Charts: Underperformers stand out visually for immediate attention
Track progress across multiple areas:
Department goal achievement
Product line target performance
Regional sales quota progress
Campaign performance vs targets
Why Bar Charts: Easy comparison of actual vs target performance
Prerequisites
Analytics dashboard access with Edit permissions
Data available for the categories you want to compare
Understanding of your key business segments
Familiarity with Analytics interface basics
Creating Your First Bar Chart
Add Bar Chart Widget
From your dashboard, click the dot menu (⋮) in the header area.
Select "Create widget" to open the WidgetForm side panel (AnalyticsDetail.tsx:279-283).
Choose "Bar Chart" from the widget type options (BarChart/BarChart.tsx implementation).

Choose Your Metric
Configure your Bar Chart in the WidgetForm side panel:
Bar Chart Specifications (BarChart/BarChart.tsx):
Vertical Axis Metrics: Single metric with API metrics support
6x6 Grid Size: Standard bar chart dimensions
Group-By Capabilities: Categorical grouping for comparisons
Stacked/Unstacked Options: Toggle between regular and stacked bars
Configuration Options:
Metric Selection: Choose from available API metrics
Group By: Select categorical dimension for bars
Stacking: Enable/disable stacked bar display
Note: Available metrics and grouping options depend on your data configuration.
Configure Category Grouping
Choose how to group your data into categories (bars):
Compare product lines or types:
Electronics vs Clothing vs Home
Subscription tiers performance
Product family comparisons
Best for: Product portfolio analysis, inventory decisions
Compare marketing channels:
Organic vs Paid vs Direct vs Social
Campaign performance comparison
Channel ROI analysis
Best for: Marketing optimization, budget allocation
Compare locations or regions:
Country performance comparison
Regional sales analysis
Market expansion insights
Best for: Geographic strategy, market prioritization
Compare different time segments:
Monthly performance comparison
Day of week analysis
Seasonal comparisons
Best for: Seasonal planning, operational optimization
For this example: Select "Product Category"
Configure Stacking Option
Bar Chart widgets support stacked/unstacked toggle (BarChart/BarChart.tsx):
Default Configuration:
Single metric comparison across categories
Each bar represents one category's metric value
Clear categorical ranking and comparison
Optimal for straightforward performance analysis
Advanced Configuration:
Multi-dimensional categorical analysis
Bars show sub-category breakdowns within main categories
Reveals both total performance and internal composition
Useful for part-to-whole relationship analysis
Configuration: Toggle stacked option in WidgetForm based on analysis needs
Position and Save
Widget Specifications:
Grid Size: 6x6 (verified Bar Chart dimensions)
Auto-positioning: Widget places in next available 6x6 grid space
Title Configuration: Set custom title or use default metric-based title
Group-By Integration: Categories determined by selected group-by dimension
Click "Save" in the side panel to add the widget to your dashboard.
Understanding Your Bar Chart
Your completed bar chart displays rich comparative information:

Key Visual Elements
Performance Comparison: Taller bars = higher performance
Ranking visibility: Instantly see top performers
Performance gaps: Size differences show opportunity gaps
Distribution patterns: Even vs uneven performance across categories
X-Axis Categories: Clear identification of what each bar represents
Category names: Product types, channels, regions, etc.
Display Order: Category ordering based on implementation (sorting behavior not verified)
Label clarity: Abbreviated if needed for space
Y-Axis Values: Metric scale and measurements
Scale optimization: Automatic scaling for best visibility
Value precision: Appropriate decimal places for metric type
Grid lines: Help estimate values between marked points
Visual Elements: Static data display without interactive functionality
Color Coding: Visual distinction between categories
Value Display: Metric values represented by bar heights
Category Labels: Clear identification of grouped data
No Interactions: Bars display data without click or hover functionality
Advanced Bar Chart Configurations
Stacked Bar Analysis
Create multi-dimensional comparisons with stacked bars:
Enable Stacking
In your bar chart configuration, check the "Stacked" option.
Stacking Requirements:
Requires additional grouping dimension
Works best with complementary categories
Most effective with 2-5 sub-categories per bar
Add Sub-Category Grouping
Example Setup: Revenue by Product Category, stacked by Traffic Source
Configuration:
Primary Grouping: Product Category (creates bars)
Secondary Grouping: Traffic Source (creates stack segments)
Metric: Total Revenue

Interpret Stacked Results
Analysis Insights:
Total performance: Bar height shows overall category performance
Composition: Stack segments show contribution by sub-category
Patterns: Consistent vs varied composition across categories
Opportunities: Categories with gaps in certain segments
Example Insights:
Electronics has highest total revenue
Clothing gets more organic traffic proportionally
Home category depends heavily on paid traffic
Direct traffic opportunity in Electronics category
Custom Sorting and Filtering
Optimize your bar chart display for specific analysis needs:
Sorting Options
Automatic Sorting (Default):
Bars sorted by metric value (highest to lowest)
Clear performance ranking
Best for identifying top performers
Display Behavior:
Default Ordering: Categories displayed according to implementation logic
Filter Integration: Use dashboard-level filters to limit displayed categories
Data Dependent: Category order may depend on data and group-by selection
Note: Custom sorting options not verified in current implementation. Category display follows built-in logic.
Category Filtering
Focus on Specific Categories:
Top N filter: Show only top 10 performers
Threshold filter: Show only categories above certain values
Strategic filter: Show only priority categories
Comparative filter: Show only specific categories for comparison
Implementation: Use dashboard-level filters or widget-specific filtering to refine your analysis focus.
Common Bar Chart Use Cases
Product Performance Analysis
Business Goal: Identify top-performing products and optimization opportunities
Setup:
Metric: Total Revenue or Units Sold
Group By: Product Category or Product Name
Time Range: Last 90 days for quarterly review
Optional Stacking: By traffic source or customer segment
Key Insights:
Revenue-generating product priorities
Underperforming product categories
Product portfolio balance
Cross-selling opportunities

Marketing Channel Comparison
Business Goal: Optimize marketing budget allocation
Setup:
Metric: Revenue, Conversions, or ROI
Group By: Traffic Source or Campaign Type
Time Range: Last 30-60 days
Optional Stacking: By geographic region or device type
Key Insights:
Highest ROI marketing channels
Budget reallocation opportunities
Channel performance consistency
Audience segment preferences
Geographic Market Analysis
Business Goal: Understand regional performance and expansion opportunities
Setup:
Metric: Revenue, Users, or Conversion Rate
Group By: Country, Region, or City
Time Range: Last 90 days or seasonal period
Optional Stacking: By product category or traffic source
Key Insights:
Market penetration by region
Geographic expansion priorities
Regional preference patterns
Localization opportunities
Bar Chart Best Practices
Visual Design Guidelines
Optimal Chart Configuration:
Limit to 10-15 bars maximum for readability
Use contrasting colors for different categories
Sort by performance (highest to lowest) unless order matters
Consider horizontal bars for long category names
Analysis Best Practices
Identify Key Patterns:
80/20 rule: Do top 20% of categories drive 80% of results?
Performance gaps: How big are the differences between categories?
Opportunity size: Which underperformers have biggest potential?
Resource needs: What would it take to improve bottom performers?
Strategic Questions:
Should we double down on top performers?
Can we learn from high performers to improve others?
Are bottom performers worth the investment to improve?
Multi-Level Analysis:
Absolute performance: Which categories generate most results?
Relative efficiency: Which categories perform best per investment?
Growth potential: Which categories have most room for improvement?
Strategic importance: Which categories align with business goals?
Decision Framework:
Identify top performers and their success factors
Analyze medium performers for optimization potential
Evaluate bottom performers for improvement or elimination
Develop action plans based on insights
Troubleshooting Bar Charts
Bars Are Too Narrow or Wide
Causes & Solutions:
Too Many Categories
Problem: Chart shows 20+ categories, bars become unreadable
Solution: Use filters to show top 10-15 categories only
Time Range Issues
Problem: Very short/long periods affect data availability
Solution: Adjust to 30-90 day periods for most analyses
Dashboard Size
Problem: Widget too small for number of categories
Solution: Resize widget to 12×6 for detailed analysis
Categories Show Unexpected Results
Diagnostic Steps:
Check grouping selection: Ensure correct category dimension
Verify time range: Confirm period matches analysis intent
Review filters: Dashboard filters may be affecting results
Validate data: Compare with known performance data
Chart Performance Issues
Optimization Strategies:
Limit categories: Show top performers only
Shorter time ranges: Reduce data processing load
Simplify stacking: Use regular bars if stacking isn't essential
Remove complex filters: Streamline data queries
Advanced Comparison Techniques
Benchmark Integration
Adding Context to Comparisons:
Industry benchmarks: Compare your categories to industry standards
Historical benchmarks: Compare current performance to past periods
Goal benchmarks: Show target lines or zones on charts
Competitive benchmarks: Include competitive data where available
Multi-Chart Analysis
Comprehensive Category Analysis:
Performance chart: Revenue or primary KPI by category
Efficiency chart: Conversion rate or ROI by category
Volume chart: Traffic or transaction volume by category
Trend chart: Growth rate or change by category
This multi-perspective approach reveals the complete story behind category performance.
FAQ
How many categories should I show in one bar chart?
Optimal Range: 5-12 categories for best readability
Fewer than 5: Consider using Big Numbers or pie chart
5-12 categories: Perfect for bar chart comparison
More than 15: Use filters to focus on most important categories
Exception: If all categories are important, consider multiple charts or use horizontal bars for better label visibility.
When should I use stacked vs regular bar charts?
Use Regular Bars When:
Comparing single metric across categories
Clear ranking is most important
Simple interpretation is preferred
Use Stacked Bars When:
Want to see both total and composition
Analyzing sub-category contributions
Understanding part-to-whole relationships
Avoid Stacking When: Sub-categories don't add up meaningfully or when too many sub-categories create visual confusion.
Can I show multiple metrics on one bar chart?
Verified Implementation: Bar Chart widgets support single metric with group-by capabilities (BarChart/BarChart.tsx)
For multiple metric analysis:
Create separate Bar Chart widgets for each metric you want to compare
Use consistent group-by dimensions across widgets for valid comparisons
Position widgets together on dashboard for comparative analysis
Consider Table widgets for multi-metric tabular display
Single-metric approach with grouping ensures optimal scaling and clear categorical comparisons.
How do I handle categories with very different scales?
When Some Categories Are Much Larger:
Use percentage metrics instead of absolute numbers (e.g., conversion rate vs total conversions)
Apply filters to show similar-sized categories together
Create separate charts for different scale ranges
Consider logarithmic scaling for very large differences (contact support)
Focus on relative performance rather than absolute values when scales vary dramatically.
What's the best way to share bar chart insights?
Effective Communication:
Highlight top 3 performers and bottom 3 performers
Quantify performance gaps between best and worst
Provide context with historical comparisons
Include action recommendations based on the analysis
Verified Export Options:
Dashboard Print: Use dashboard print functionality (AnalyticsDetail.tsx:266-272)
Screenshot Capture: Take screenshots for presentations
Dashboard Sharing: Share complete dashboards with team members
Note: Individual widget export functionality is not available in the current implementation.
Documentation Verification: All Bar Chart widget features and configuration options described in this guide have been verified against the actual Analytics codebase. Widget specifications, group-by capabilities, stacking options, and display behavior are accurately documented based on BarChart/BarChart.tsx implementation.
Related Guides:
Create Line Chart for Trends
Configure Big Number KPIs
Build Detailed Table Analysis
Configure Dashboard Filters
Last updated
Was this helpful?
