View Live Example
See bar charts in action with interactive examples
Overview
Bar charts are ideal for comparing categorical data. Cristalyse supports vertical, horizontal, grouped, and stacked bar charts with smooth animations and customizable styling.

Basic Bar Chart
Create a simple vertical bar chart:Grouped Bar Charts
Compare multiple series side-by-side:
Stacked Bar Charts
Show composition and totals:
New in v1.5.0: Legends automatically generate from your color mapping. Perfect for grouped and stacked bar charts!
Horizontal Bar Charts
Perfect for long category names or ranking data:Styling Options
Rounded Corners
Add modern styling with border radius:Borders
Add definition with borders:Custom Colors
Override default color mapping:Positive/Negative Value Styling
New in v1.17.0: Style positive and negative bars differently with smart rounded corners and conditional colors. Perfect for financial data, variance charts, and profit/loss visualizations.
Smart Rounded Corners
Round only the outward edges of bars (away from the zero baseline):Conditional Colors
Apply different colors based on value sign:Combined Example (Financial Dashboard)
Gradient Colors
New in v1.6.0: Add stunning gradient effects to your bar charts! Support for linear, radial, and sweep gradients with full alpha blending.
Advanced Gradient Examples
Multiple gradient types for regional sales data:Gradient Features
- Linear Gradients: Perfect for vertical or horizontal color transitions
- Radial Gradients: Create circular color effects from center outward
- Sweep Gradients: Circular gradients that sweep around a center point
- Alpha Blending: Gradients automatically respect animation alpha values
- Type Safety: Strongly typed gradient maps for reliability
Animation Types
Progressive Bar Growth
Bars animate from bottom to top:Staggered Animation
Each bar animates with a slight delay:Dual Y-Axis Bar Charts
Combine bars with different scales:Interactive Bar Charts
Hover Effects
Add rich tooltips on hover:Click Handlers
React to bar selection:Best Practices
Bar Width
Bar Width
- Use width 0.6-0.8 for optimal readability
- Avoid very thin bars (< 0.3) or very thick bars (> 0.9)
- Grouped bars automatically adjust width
Color Choices
Color Choices
- Use consistent color palettes
- Consider colorblind-friendly schemes
- Limit categories to 8-10 colors maximum
Stacked Bars
Stacked Bars
- Ensure data values are positive
- Order categories consistently
- Consider total height for readability
Performance
Performance
- Limit to 50-100 bars for optimal performance
- Use simpler borders for large datasets
- Consider data aggregation for very large sets
Common Use Cases
Sales Comparison
Compare performance across regions or time periods
Budget Analysis
Show spending breakdown with stacked bars
Survey Results
Display categorical survey responses
Performance Metrics
Rank teams or products by metrics
Next Steps
Area Charts
Visualize volume and cumulative data
Dual Y-Axis
Combine different metrics on independent scales
Animations
Add smooth transitions and effects
Interactions
Make charts interactive with tooltips and events