pub struct ScatterMatrixSpec {
pub method: String,
pub columns: Vec<String>,
pub diagonal: String,
pub alpha: f64,
pub range_padding: f64,
pub series: Vec<PlotSeriesSpec>,
}Expand description
Backend-neutral scatter matrix request produced by scatter_matrix() hooks.
Fields§
§method: String§columns: Vec<String>§diagonal: String§alpha: f64§range_padding: f64§series: Vec<PlotSeriesSpec>Implementations§
Source§impl ScatterMatrixSpec
impl ScatterMatrixSpec
Sourcepub fn to_svg(&self) -> Result<String, FrameError>
pub fn to_svg(&self) -> Result<String, FrameError>
Render this scatter matrix specification to deterministic SVG XML.
Sourcepub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
pub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
ScatterMatrixSpec::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 scatter matrix 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 scatter matrix spec to Markdown-compatible HTML embedding.
Trait Implementations§
Source§impl Clone for ScatterMatrixSpec
impl Clone for ScatterMatrixSpec
Source§impl Debug for ScatterMatrixSpec
impl Debug for ScatterMatrixSpec
Source§impl<'de> Deserialize<'de> for ScatterMatrixSpec
impl<'de> Deserialize<'de> for ScatterMatrixSpec
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 ScatterMatrixSpec
impl PartialEq for ScatterMatrixSpec
Source§impl Serialize for ScatterMatrixSpec
impl Serialize for ScatterMatrixSpec
impl StructuralPartialEq for ScatterMatrixSpec
Auto Trait Implementations§
impl !RefUnwindSafe for ScatterMatrixSpec
impl !UnwindSafe for ScatterMatrixSpec
impl Freeze for ScatterMatrixSpec
impl Send for ScatterMatrixSpec
impl Sync for ScatterMatrixSpec
impl Unpin for ScatterMatrixSpec
impl UnsafeUnpin for ScatterMatrixSpec
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