Skip to Content
组件BarChart

BarChart

BarChart 用来显示带标签的柱状数据。

BarChart
BarChart 终端效果图
BarChart 的终端效果图

最小示例

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

关键 builder 方法

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