Visualization

Sparklines

Render a bounded numeric suffix as a compact bar series.

Generated previewCharm
Dedicated Sparklines example rendered in the Charm skin

The site build compiles the dedicated Ada component example, constructs Sparklines through its public API, and exports that exact styled surface. Read the capture source.

When to use it

Use a sparkline when trend and shape matter more than exact axis labels.

State and ownership

The Flyology_TUI.Components.Sparklines package defines this component.

The caller supplies a fixed-capacity numeric series. Automatic or fixed scaling validates finite values before glyph selection.

  • The caller owns the bounded numeric series.
  • The renderer borrows the series, scale, width, and appearance for one call.

Behavior

Sparklines are read-only and take no focus.

Integration sequence

  1. Create or update the caller-owned values that the renderer reads.
  2. Borrow the values and appearance required by the selected render function.
  3. Place the returned surface in the current layout. Do not route input to this component.

See the linked package reference for its exact declarations and contracts.

Responsive and accessible behavior

  • Use dimensions and regions from the current layout or presentation value.
  • Retain a glyph, label, border, or text-attribute cue when the terminal reduces color.