pub struct Chart {
pub layers: Vec<Layer>,
pub title: Option<SharedString>,
}Fields§
§layers: Vec<Layer>Paint order. Their x scales are one scale, as are their y scales, and a colour value is one colour across them.
title: Option<SharedString>Implementations§
Source§impl Chart
impl Chart
Sourcepub fn layer(self, other: Chart) -> Self
pub fn layer(self, other: Chart) -> Self
other’s layers over this chart’s. Its title is dropped.
pub fn bar(data: Data) -> Self
pub fn line(data: Data) -> Self
pub fn area(data: Data) -> Self
pub fn point(data: Data) -> Self
pub fn arc(data: Data) -> Self
Sourcepub fn x(self, channel: Channel) -> Self
pub fn x(self, channel: Channel) -> Self
Sets the last layer’s x, as the other channels do theirs.
pub fn y(self, channel: Channel) -> Self
pub fn color(self, channel: Channel) -> Self
pub fn theta(self, channel: Channel) -> Self
pub fn title(self, title: impl Into<SharedString>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Forget for Chart
impl Freeze for Chart
impl Move for Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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