Struct tuirealm::tui::widgets::BarChart [−][src]
pub struct BarChart<'a> { /* fields omitted */ }
Expand description
Display multiple bars in a single widgets
Examples
BarChart::default() .block(Block::default().title("BarChart").borders(Borders::ALL)) .bar_width(3) .bar_gap(1) .bar_style(Style::default().fg(Color::Yellow).bg(Color::Red)) .value_style(Style::default().fg(Color::Red).add_modifier(Modifier::BOLD)) .label_style(Style::default().fg(Color::White)) .data(&[("B0", 0), ("B1", 2), ("B2", 4), ("B3", 3)]) .max(4);Run
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for BarChart<'a>
impl<'a> UnwindSafe for BarChart<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more