pub struct BoxPlotSpec {
pub method: String,
pub series: Vec<PlotSeriesSpec>,
}Expand description
Backend-neutral boxplot request produced by boxplot() hooks.
Fields§
§method: String§series: Vec<PlotSeriesSpec>Implementations§
Source§impl BoxPlotSpec
impl BoxPlotSpec
Sourcepub fn to_svg(&self) -> Result<String, FrameError>
pub fn to_svg(&self) -> Result<String, FrameError>
Render a side-by-side box-and-whisker plot (min, q1, median, q3, max — linear-interpolated quantiles, NaN skipped). Fails closed when every series is empty, or on non-numeric input.
Sourcepub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
pub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
BoxPlotSpec::to_svg as UTF-8 bytes.
Trait Implementations§
Source§impl Clone for BoxPlotSpec
impl Clone for BoxPlotSpec
Source§fn clone(&self) -> BoxPlotSpec
fn clone(&self) -> BoxPlotSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BoxPlotSpec
impl Debug for BoxPlotSpec
Source§impl<'de> Deserialize<'de> for BoxPlotSpec
impl<'de> Deserialize<'de> for BoxPlotSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BoxPlotSpec
impl PartialEq for BoxPlotSpec
Source§impl Serialize for BoxPlotSpec
impl Serialize for BoxPlotSpec
impl StructuralPartialEq for BoxPlotSpec
Auto Trait Implementations§
impl Freeze for BoxPlotSpec
impl RefUnwindSafe for BoxPlotSpec
impl Send for BoxPlotSpec
impl Sync for BoxPlotSpec
impl Unpin for BoxPlotSpec
impl UnsafeUnpin for BoxPlotSpec
impl UnwindSafe for BoxPlotSpec
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