pub struct Theme {Show 14 fields
pub background: Color,
pub foreground: Color,
pub palette: Palette,
pub grid_color: Color,
pub grid_width: f64,
pub show_grid: bool,
pub title_font_size: f64,
pub label_font_size: f64,
pub tick_font_size: f64,
pub legend_font_size: f64,
pub font_family: String,
pub axis_width: f64,
pub line_width: f64,
pub point_radius: f64,
}Expand description
A theme controlling the visual appearance of charts.
Fields§
§background: ColorBackground color.
foreground: ColorForeground color (text, axes, ticks).
palette: PaletteColor palette for data series.
grid_color: ColorGrid line color.
grid_width: f64Grid line width.
show_grid: boolWhether to show grid lines.
title_font_size: f64Title font size.
label_font_size: f64Axis label font size.
tick_font_size: f64Tick label font size.
legend_font_size: f64Legend font size.
font_family: StringFont family.
axis_width: f64Axis line width.
line_width: f64Default data line width.
point_radius: f64Default scatter point radius.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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