class RatatuiRuby::Widgets::Sparkline

Displays high-density data in a compact row.

Users need context. A single value (β€œ90% CPU”) tells you current status, but not the trend. Full charts take up too much room.

This widget solves the density problem. It condenses history into a single line of variable-height blocks.

Use it in dashboards, headers, or list items to providing trending data at a glance.

Example

Run the interactive demo from the terminal:

ruby examples/widget_sparkline/app.rb