pub struct ChartConfig {
pub chart_type: ChartType,
pub title: String,
pub x_label: Option<String>,
pub y_label: Option<String>,
pub z_label: Option<String>,
pub width: u32,
pub height: u32,
pub use_webgl: bool,
pub theme: String,
}Expand description
Chart configuration
Fields§
§chart_type: ChartTypeChart type
title: StringChart title
x_label: Option<String>X-axis label
y_label: Option<String>Y-axis label
z_label: Option<String>Z-axis label (for 3D charts)
width: u32Chart width in pixels
height: u32Chart height in pixels
use_webgl: boolUse WebGL renderer (for better performance)
theme: StringColor scheme/theme
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 · 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§impl<'de> Deserialize<'de> for ChartConfig
impl<'de> Deserialize<'de> for ChartConfig
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 ChartConfig
impl RefUnwindSafe for ChartConfig
impl Send for ChartConfig
impl Sync for ChartConfig
impl Unpin 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