pub struct ChartConfig {Show 15 fields
pub title: Option<String>,
pub title_style: Option<Style>,
pub x_axis: Axis,
pub y_axis: Axis,
pub datasets: Vec<Dataset>,
pub legend: LegendPosition,
pub grid: bool,
pub grid_style: Option<Style>,
pub hlines: Vec<(f64, Style)>,
pub vlines: Vec<(f64, Style)>,
pub frame_visible: bool,
pub x_axis_visible: bool,
pub y_axis_visible: bool,
pub width: u32,
pub height: u32,
}Expand description
Chart configuration.
Fields§
§title: Option<String>Optional chart title.
title_style: Option<Style>Optional chart title style override.
x_axis: AxisX axis configuration.
y_axis: AxisY axis configuration.
datasets: Vec<Dataset>Chart datasets.
legend: LegendPositionLegend position.
grid: boolWhether to render grid lines.
grid_style: Option<Style>Optional grid line style override.
hlines: Vec<(f64, Style)>Horizontal reference lines as (y, style).
vlines: Vec<(f64, Style)>Vertical reference lines as (x, style).
frame_visible: boolWhether to render the outer frame.
x_axis_visible: boolWhether to render x-axis line/labels/title rows.
y_axis_visible: boolWhether to render y-axis labels/divider column.
width: u32Total chart width in terminal cells.
height: u32Total chart height in terminal cells.
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 moreAuto 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