pub struct SimpleBarGroupsPlot<'a> { /* private fields */ }Expand description
Simple bar groups plot with automatic layout
Implementations§
Source§impl<'a> SimpleBarGroupsPlot<'a>
impl<'a> SimpleBarGroupsPlot<'a>
Sourcepub fn new(labels: Vec<&'a str>, data: Vec<Vec<f64>>) -> Self
pub fn new(labels: Vec<&'a str>, data: Vec<Vec<f64>>) -> Self
Create a simple bar groups plot from a 2D data structure
§Arguments
labels- Labels for each seriesdata- Vector of vectors, where each inner vector is a series
Sourcepub fn with_group_size(self, group_size: f64) -> Self
pub fn with_group_size(self, group_size: f64) -> Self
Set the group size
Sourcepub fn with_flags(self, flags: BarGroupsFlags) -> Self
pub fn with_flags(self, flags: BarGroupsFlags) -> Self
Set flags
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
Make bars horizontal
Auto Trait Implementations§
impl<'a> Freeze for SimpleBarGroupsPlot<'a>
impl<'a> RefUnwindSafe for SimpleBarGroupsPlot<'a>
impl<'a> Send for SimpleBarGroupsPlot<'a>
impl<'a> Sync for SimpleBarGroupsPlot<'a>
impl<'a> Unpin for SimpleBarGroupsPlot<'a>
impl<'a> UnwindSafe for SimpleBarGroupsPlot<'a>
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