pub struct LineChart {Show 18 fields
pub title: String,
pub series: Vec<DataSeries>,
pub x_axis_label: String,
pub y_axis_label: String,
pub title_font: Font,
pub title_font_size: f64,
pub label_font: Font,
pub label_font_size: f64,
pub axis_font: Font,
pub axis_font_size: f64,
pub legend_position: LegendPosition,
pub background_color: Option<Color>,
pub show_grid: bool,
pub grid_color: Color,
pub axis_color: Color,
pub x_range: Option<(f64, f64)>,
pub y_range: Option<(f64, f64)>,
pub grid_lines: usize,
}Expand description
Line chart configuration
Fields§
§title: StringChart title
series: Vec<DataSeries>Data series
x_axis_label: StringX-axis label
y_axis_label: StringY-axis label
title_font: FontTitle font and size
title_font_size: f64§label_font: FontLabel font and size
label_font_size: f64§axis_font: FontAxis font and size
axis_font_size: f64§legend_position: LegendPositionLegend position
background_color: Option<Color>Background color
show_grid: boolShow grid lines
grid_color: ColorGrid color
axis_color: ColorAxis color
x_range: Option<(f64, f64)>X-axis range (None for auto)
y_range: Option<(f64, f64)>Y-axis range (None for auto)
grid_lines: usizeNumber of grid lines
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineChart
impl RefUnwindSafe for LineChart
impl Send for LineChart
impl Sync for LineChart
impl Unpin for LineChart
impl UnwindSafe for LineChart
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,
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().