pub struct SeriesSummary {Show 14 fields
pub key: Option<String>,
pub n: usize,
pub x_from: String,
pub x_to: String,
pub y_first: f64,
pub y_last: f64,
pub y_min: (f64, String),
pub y_max: (f64, String),
pub band: Option<(f64, f64)>,
pub band_width: Option<(f64, f64)>,
pub points: Vec<(String, f64)>,
pub cor: Option<Correlation>,
pub counter_move: Option<Move>,
pub peaks: Vec<(f64, String)>,
}Expand description
One series of a layer (all its rows when the layer has no series column).
Fields§
§key: Option<String>The series’ value (its colour / fill / group), None for a single one.
n: usizeRows with a finite y.
x_from: StringThe x extent: the smallest and largest of a numeric or date x, the first and last (in the order drawn) of a discrete one.
x_to: String§y_first: f64§y_last: f64§y_min: (f64, String)(y, x) of the smallest and largest y (the first, on a tie).
y_max: (f64, String)§band: Option<(f64, f64)>(lowest ymin, highest ymax) of a band (ribbon, smooth, interval).
band_width: Option<(f64, f64)>The band’s width (ymax − ymin) at x_from and at x_to: whether
the uncertainty widens or narrows along x.
points: Vec<(String, f64)>Every mark’s (x label, y), in the order drawn.
cor: Option<Correlation>How y goes with a numeric x on a point layer (a scatter, a bubble
chart) of at least MIN_COR_POINTS marks.
counter_move: Option<Move>Along an ordered x (at least MIN_SHAPE_POINTS marks): the
largest move against the series’ net direction — the deepest fall of
a series that ends higher than it starts, the biggest rise of one
that ends lower — when it is at least a tenth of the y range. A
series that “rises steadily” has none worth naming.
peaks: Vec<(f64, String)>Along an ordered x: the local maxima that stand out by at least a quarter of the y range (their prominence), highest first. Two or more: the series peaks more than once.
Trait Implementations§
Source§impl Clone for SeriesSummary
impl Clone for SeriesSummary
Source§impl Debug for SeriesSummary
impl Debug for SeriesSummary
Source§impl PartialEq for SeriesSummary
impl PartialEq for SeriesSummary
impl StructuralPartialEq for SeriesSummary
Auto Trait Implementations§
impl Forget for SeriesSummary
impl Freeze for SeriesSummarywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, f64)>: Freeze,
PhantomData<(f64, String)>: Freeze,
impl Move for SeriesSummary
impl RefUnwindSafe for SeriesSummary
impl Send for SeriesSummarywhere
RawVecInner: Send,
impl Sync for SeriesSummarywhere
RawVecInner: Sync,
impl Unpin for SeriesSummary
impl UnsafeUnpin for SeriesSummarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
PhantomData<(f64, String)>: UnsafeUnpin,
impl UnwindSafe for SeriesSummarywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more