Skip to main content

ChartThemeExt

Trait ChartThemeExt 

Source
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§

Source

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).

Source

fn crosshair_style(&self) -> Style

Crosshair guide line style.

Source

fn tooltip_style(&self) -> Style

Crosshair tooltip style (tooltip_fg on tooltip_bg).

Source

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§

Source§

impl ChartThemeExt for Theme

Available on crate feature theme only.