pub struct StackedBarChart {
pub bars: Vec<StackedBar>,
pub x_axis: Option<String>,
pub y_axis: Option<String>,
pub labels: HashSet<String>,
pub x_scale: Scale,
pub y_scale: Scale,
}Fields§
§bars: Vec<StackedBar>§x_axis: Option<String>§y_axis: Option<String>§labels: HashSet<String>§x_scale: Scale§y_scale: ScaleImplementations§
Source§impl StackedBarChart
impl StackedBarChart
pub fn x_axis(self, label: impl Into<String>) -> Self
pub fn y_axis(self, label: impl Into<String>) -> Self
Sourcepub fn has_true_negatives(&self) -> bool
pub fn has_true_negatives(&self) -> bool
Returns true any negative bar is not completely empty. For a Stacked bar chart, an empty point is defined as one which has a y data value of 0 or 0.0
Sourcepub fn has_true_positives(&self) -> bool
pub fn has_true_positives(&self) -> bool
Returns true any positive bar is not completely empty. For a Stacked bar chart, an empty point is defined as one which has a y data value of 0 or 0.0
pub fn remove_section(&mut self, bar: usize, section: impl Into<String>)
pub fn remove_section_all(&mut self, section: impl Into<String>)
pub fn add_section(&mut self, bar: usize, section: impl Into<String>)
pub fn add_section_all(&mut self, section: impl Into<String>)
Trait Implementations§
Source§impl Clone for StackedBarChart
impl Clone for StackedBarChart
Source§fn clone(&self) -> StackedBarChart
fn clone(&self) -> StackedBarChart
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StackedBarChart
impl Debug for StackedBarChart
Source§impl PartialEq for StackedBarChart
impl PartialEq for StackedBarChart
impl StructuralPartialEq for StackedBarChart
Auto Trait Implementations§
impl Freeze for StackedBarChart
impl RefUnwindSafe for StackedBarChart
impl Send for StackedBarChart
impl Sync for StackedBarChart
impl Unpin for StackedBarChart
impl UnwindSafe for StackedBarChart
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