BarChart Widget Example

Visualizes categorical data with interactive attribute cycling.

Comparing magnitudes in raw tables requires mental arithmetic. Bar charts make these comparisons instant and intuitive.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_barchart_demo/app.rb

Learning Outcomes

Use this example if you need to… - Visualize categorical data (e.g., sales by quarter, CPU usage by core). - Create β€œstats” dashboards with compact visualizations. - Understand how RatatuiRuby::BarChart handles different data structures.

Demo