Sparkline Widget Example

Demonstrates high-density data visualization in a condensed footprint.

Users need context. A single number (“90% CPU”) tells you status, but not the trend. Full charts take up too much space. Sparklines condense history into a single line, perfect for headers and dashboards.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_sparkline_demo/app.rb

Learning Outcomes

Use this example if you need to… - Add a “CPU Load” graph to your header. - Visualize stock price trends in a list row. - Monitor memory usage over the last 60 seconds.

Demo