pub struct Aggregate<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Aggregate<'a>
impl<'a> Aggregate<'a>
Sourcepub fn enabled(&mut self, enabled: bool) -> &mut Self
pub fn enabled(&mut self, enabled: bool) -> &mut Self
Determines whether this aggregate transform is enabled or disabled.
default: true
Sourcepub fn groups(&mut self, groups: &'a str) -> &mut Self
pub fn groups(&mut self, groups: &'a str) -> &mut Self
Sets the grouping target to which the aggregation is applied. Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string, groups
is assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use . to access them. For example, set groups
to marker.color to aggregate about the marker color array. If an array, groups
is itself the data array by which we aggregate.
default: x
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Aggregate<'a>
impl<'a> RefUnwindSafe for Aggregate<'a>
impl<'a> Send for Aggregate<'a>
impl<'a> Sync for Aggregate<'a>
impl<'a> Unpin for Aggregate<'a>
impl<'a> UnwindSafe for Aggregate<'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