pub trait ChartThemeExt {
// Required methods
fn gradient(&self) -> Gradient;
fn crosshair_style(&self) -> Style;
fn tooltip_style(&self) -> Style;
fn series_color(&self, i: usize) -> Color;
}Expand description
Chart-specific helpers derived from a Theme.
Required Methods§
Sourcefn gradient(&self) -> Gradient
fn gradient(&self) -> Gradient
Gradient from a dim tint of the background up to the accent and the second palette color (used by heatmap / treemap / sparkline).
Sourcefn crosshair_style(&self) -> Style
fn crosshair_style(&self) -> Style
Crosshair guide line style.
Sourcefn tooltip_style(&self) -> Style
fn tooltip_style(&self) -> Style
Crosshair tooltip style (tooltip_fg on tooltip_bg).
Sourcefn series_color(&self, i: usize) -> Color
fn series_color(&self, i: usize) -> Color
Series color i, cycling through the palette.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ChartThemeExt for Theme
Available on crate feature
theme only.