pub struct LineChartBuilder { /* private fields */ }Expand description
Builder for creating line charts
Implementations§
Source§impl LineChartBuilder
impl LineChartBuilder
Sourcepub fn add_series(self, series: DataSeries) -> Self
pub fn add_series(self, series: DataSeries) -> Self
Add a data series
Sourcepub fn axis_labels<S: Into<String>>(self, x_label: S, y_label: S) -> Self
pub fn axis_labels<S: Into<String>>(self, x_label: S, y_label: S) -> Self
Set axis labels
Sourcepub fn title_font(self, font: Font, size: f64) -> Self
pub fn title_font(self, font: Font, size: f64) -> Self
Set fonts
Sourcepub fn label_font(self, font: Font, size: f64) -> Self
pub fn label_font(self, font: Font, size: f64) -> Self
Set label font
Sourcepub fn legend_position(self, position: LegendPosition) -> Self
pub fn legend_position(self, position: LegendPosition) -> Self
Set legend position
Sourcepub fn background_color(self, color: Color) -> Self
pub fn background_color(self, color: Color) -> Self
Set background color
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineChartBuilder
impl RefUnwindSafe for LineChartBuilder
impl Send for LineChartBuilder
impl Sync for LineChartBuilder
impl Unpin for LineChartBuilder
impl UnwindSafe for LineChartBuilder
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().