Skip to Content
WidgetsSparkline

Sparkline

Sparkline is for small, dense trend lines.

Sparkline
Sparkline terminal preview
Terminal preview of Sparkline

Smallest example

let spark = Sparkline::new() .values([3, 5, 2, 8, 6, 9]) .max(10) .build();

Key builder methods

  • .value(...), .values(...)
  • .value_opt(...), .values_opt(...)
  • .max(...)
  • .direction(...)
  • .absent_symbol(...), .absent_style(...)
Last updated on