pub struct BarChart { /* private fields */ }Expand description
Implementations§
Source§impl BarChart
impl BarChart
Sourcepub fn bar_colored(
self,
label: impl Into<String>,
value: f64,
color: Color,
) -> Self
pub fn bar_colored( self, label: impl Into<String>, value: f64, color: Color, ) -> Self
Add a bar with a specific color
Sourcepub fn orientation(self, orientation: BarOrientation) -> Self
pub fn orientation(self, orientation: BarOrientation) -> Self
Set bar orientation
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
Set to horizontal orientation
Sourcepub fn show_values(self, show: bool) -> Self
pub fn show_values(self, show: bool) -> Self
Show or hide values
Sourcepub fn label_width(self, width: u16) -> Self
pub fn label_width(self, width: u16) -> Self
Set fixed label width
Trait Implementations§
Source§impl StyledView for BarChart
impl StyledView for BarChart
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for BarChart
impl RefUnwindSafe for BarChart
impl Send for BarChart
impl Sync for BarChart
impl Unpin for BarChart
impl UnwindSafe for BarChart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more