pub struct BarGroupsPlot<'a> { /* private fields */ }Expand description
Builder for bar groups plots with extensive customization options
Implementations§
Source§impl<'a> BarGroupsPlot<'a>
impl<'a> BarGroupsPlot<'a>
Sourcepub fn new(
label_ids: Vec<&'a str>,
values: &'a [f64],
item_count: usize,
group_count: usize,
) -> Self
pub fn new( label_ids: Vec<&'a str>, values: &'a [f64], item_count: usize, group_count: usize, ) -> Self
Create a new bar groups plot
§Arguments
label_ids- Labels for each item in the groupvalues- Values in row-major order (item_count rows, group_count cols)item_count- Number of items (series) in each groupgroup_count- Number of groups
Sourcepub fn with_group_size(self, group_size: f64) -> Self
pub fn with_group_size(self, group_size: f64) -> Self
Set the group size (width of each group)
Sourcepub fn with_shift(self, shift: f64) -> Self
pub fn with_shift(self, shift: f64) -> Self
Set the shift (horizontal offset)
Sourcepub fn with_flags(self, flags: BarGroupsFlags) -> Self
pub fn with_flags(self, flags: BarGroupsFlags) -> Self
Set bar groups flags for customization
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
Make bars horizontal instead of vertical
Trait Implementations§
Source§impl<'a> PlotData for BarGroupsPlot<'a>
impl<'a> PlotData for BarGroupsPlot<'a>
Auto Trait Implementations§
impl<'a> Freeze for BarGroupsPlot<'a>
impl<'a> RefUnwindSafe for BarGroupsPlot<'a>
impl<'a> Send for BarGroupsPlot<'a>
impl<'a> Sync for BarGroupsPlot<'a>
impl<'a> Unpin for BarGroupsPlot<'a>
impl<'a> UnwindSafe for BarGroupsPlot<'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