MultiSeries

Trait MultiSeries 

Source
pub(super) trait MultiSeries: Series {
    // Required method
    fn with_defaults<D: Into<DataPoint>>(key: &str, data: Vec<D>) -> Self;
}
Expand description

Trait for chart types that require one series for each data point.

Required Methods§

Source

fn with_defaults<D: Into<DataPoint>>(key: &str, data: Vec<D>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MultiSeries for Bar

Source§

fn with_defaults<D: Into<DataPoint>>(key: &str, data: Vec<D>) -> Self

Creates a new [series::Bar] with the given key and data.

Source§

impl MultiSeries for Line

Source§

fn with_defaults<D: Into<DataPoint>>(key: &str, data: Vec<D>) -> Self

Implementors§