pub(super) trait SingleSeries: Series {
// Required method
fn with_defaults<D: Into<DataPoint>>(data: Vec<D>) -> Self;
}Expand description
Trait for chart types that require one series for all data points.
Required Methods§
fn with_defaults<D: Into<DataPoint>>(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 SingleSeries for Pie
impl SingleSeries for Pie
Source§fn with_defaults<D: Into<DataPoint>>(data: Vec<D>) -> Self
fn with_defaults<D: Into<DataPoint>>(data: Vec<D>) -> Self
Creates a new [series::Pie] with the given data.