Skip to Content
WidgetsBarChart

BarChart

BarChart displays labeled bars.

BarChart
BarChart terminal preview
Terminal preview of BarChart

Smallest example

let chart = BarChart::new() .bar("Mon", 12) .bar("Tue", 18) .max(20) .build();

Key builder methods

  • .bar(...), .bars(...)
  • .max(...)
  • .bar_width(...)
Last updated on