pub struct ChartOptions<'a> {
pub kind: ChartKind,
pub title: &'a str,
pub legend: bool,
pub size: f32,
pub ink: Color,
pub muted: Color,
pub grid: Color,
pub format: &'a dyn Fn(f64) -> String,
}Expand description
The look of a chart.
Fields§
§kind: ChartKindThe kind of chart.
title: &'a strA title above it.
legend: boolWhether to draw a legend when there is something to tell apart.
size: f32The font size everything is sized from.
ink: ColorTitle color.
muted: ColorAxis and legend text color.
grid: ColorGridline color.
format: &'a dyn Fn(f64) -> StringHow numbers are shown.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ChartOptions<'a>
impl<'a> !Send for ChartOptions<'a>
impl<'a> !Sync for ChartOptions<'a>
impl<'a> !UnwindSafe for ChartOptions<'a>
impl<'a> Freeze for ChartOptions<'a>
impl<'a> Unpin for ChartOptions<'a>
impl<'a> UnsafeUnpin for ChartOptions<'a>
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