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.
Sourcepub fn to_html(&self) -> Result<String, FrameError>
pub fn to_html(&self) -> Result<String, FrameError>
Wrap the deterministic SVG in an HTML figure container.
Sourcepub fn to_html_page(&self, title: Option<&str>) -> Result<String, FrameError>
pub fn to_html_page(&self, title: Option<&str>) -> Result<String, FrameError>
Render this boxplot spec to a complete HTML5 page document.
Sourcepub fn to_markdown(&self) -> Result<String, FrameError>
pub fn to_markdown(&self) -> Result<String, FrameError>
Render this boxplot spec to Markdown-compatible HTML embedding.
Trait Implementations§
Source§impl Clone for BoxPlotSpec
impl Clone for BoxPlotSpec
Source§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 !RefUnwindSafe for BoxPlotSpec
impl !UnwindSafe for BoxPlotSpec
impl Freeze for BoxPlotSpec
impl Send for BoxPlotSpec
impl Sync for BoxPlotSpec
impl Unpin for BoxPlotSpec
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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