pub struct ChartStyle {Show 15 fields
pub background: Color,
pub primary: Color,
pub palette: Vec<Color>,
pub axis_color: Color,
pub grid_color: Color,
pub text_color: Color,
pub font_family: String,
pub title_font_size: f64,
pub label_font_size: f64,
pub axis_font_size: f64,
pub line_width: f64,
pub point_radius: f64,
pub show_grid: bool,
pub show_legend: bool,
pub padding: Padding,
}Expand description
Visual style configuration for charts.
Fields§
§background: ColorBackground color.
primary: ColorPrimary color for data.
palette: Vec<Color>Secondary colors for additional series.
axis_color: ColorAxis color.
grid_color: ColorGrid line color.
text_color: ColorText color.
font_family: StringFont family.
title_font_size: f64Title font size.
label_font_size: f64Label font size.
axis_font_size: f64Axis font size.
line_width: f64Line width for line charts.
point_radius: f64Point radius for scatter plots.
show_grid: boolShow grid lines.
show_legend: boolShow legend.
padding: PaddingPadding around the chart.
Implementations§
Trait Implementations§
Source§impl Clone for ChartStyle
impl Clone for ChartStyle
Source§fn clone(&self) -> ChartStyle
fn clone(&self) -> ChartStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartStyle
impl Debug for ChartStyle
Source§impl Default for ChartStyle
impl Default for ChartStyle
Source§impl<'de> Deserialize<'de> for ChartStyle
impl<'de> Deserialize<'de> for ChartStyle
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
Auto Trait Implementations§
impl Freeze for ChartStyle
impl RefUnwindSafe for ChartStyle
impl Send for ChartStyle
impl Sync for ChartStyle
impl Unpin for ChartStyle
impl UnwindSafe for ChartStyle
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