Skip to Content
WidgetsChart

Chart

Chart is the lightweight multi-dataset plotting widget.

Chart
Chart terminal preview
Terminal preview of Chart

Smallest example

let chart = Chart::new() .named_dataset("cpu", [(0, 1), (1, 3), (2, 2)]) .min_y(0) .max_y(5) .build();

Key builder methods

  • .dataset(...)
  • .named_dataset(...)
  • .min_y(...), .max_y(...)
Last updated on