pub struct ChartConfig {
pub width: f64,
pub height: f64,
pub margin_top: f64,
pub margin_right: f64,
pub margin_bottom: f64,
pub margin_left: f64,
pub title: String,
pub x_label: String,
pub y_label: String,
pub background: String,
pub grid: bool,
pub font_size: f64,
}Expand description
Configuration for SVG chart rendering.
Fields§
§width: f64Total SVG width in pixels.
height: f64Total SVG height in pixels.
margin_top: f64Top margin in pixels.
margin_right: f64Right margin in pixels.
margin_bottom: f64Bottom margin in pixels.
margin_left: f64Left margin in pixels.
title: StringChart title.
x_label: StringX-axis label.
y_label: StringY-axis label.
background: StringBackground color (CSS).
grid: boolWhether to draw grid lines.
font_size: f64Base font size in pixels.
Trait Implementations§
Source§impl Clone for ChartConfig
impl Clone for ChartConfig
Source§fn clone(&self) -> ChartConfig
fn clone(&self) -> ChartConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChartConfig
impl Debug for ChartConfig
Source§impl Default for ChartConfig
impl Default for ChartConfig
Source§fn default() -> ChartConfig
fn default() -> ChartConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChartConfig
impl RefUnwindSafe for ChartConfig
impl Send for ChartConfig
impl Sync for ChartConfig
impl Unpin for ChartConfig
impl UnsafeUnpin for ChartConfig
impl UnwindSafe for ChartConfig
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