#[non_exhaustive]pub struct ChartStyle {
pub stroke_px: u8,
pub area_fill: bool,
pub area_alpha: u8,
pub tick_count: u8,
pub nice_ticks: bool,
pub series: [Rgb; 4],
pub plot_background: Rgb,
pub markers: MarkerStyle,
}Expand description
Timeseries look. Independent of table metrics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stroke_px: u8Polyline thickness in pixels (1–4). Default 2.
area_fill: boolFill under the line.
area_alpha: u8Area blend 0–255 against the plot background.
tick_count: u8Target tick count (nice numbers may differ).
nice_ticks: bool1–2–5 × 10^n ticks.
series: [Rgb; 4]Up to four series colors.
plot_background: RgbPlot well (distinct from page background).
markers: MarkerStyleVertex markers.
Implementations§
Source§impl ChartStyle
impl ChartStyle
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Derive a chart style from a theme (plot well + series palette).
Trait Implementations§
Source§impl Clone for ChartStyle
impl Clone for ChartStyle
impl Copy for ChartStyle
Source§impl Debug for ChartStyle
impl Debug for ChartStyle
Source§impl Default for ChartStyle
impl Default for ChartStyle
impl Eq for ChartStyle
Source§impl PartialEq for ChartStyle
impl PartialEq for ChartStyle
impl StructuralPartialEq for ChartStyle
Auto Trait Implementations§
impl Forget for ChartStyle
impl Freeze for ChartStyle
impl Move for ChartStyle
impl RefUnwindSafe for ChartStyle
impl Send for ChartStyle
impl Sync for ChartStyle
impl Unpin for ChartStyle
impl UnsafeUnpin for ChartStyle
impl UnwindSafe for ChartStyle
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