pub struct ChartSeries {
pub label: Option<String>,
pub color: Option<PropertyValue>,
pub label_color: Option<PropertyValue>,
pub data_ref: Option<String>,
pub values: Vec<f64>,
}Expand description
Fields§
§label: Option<String>Optional legend or category label for this series.
color: Option<PropertyValue>Optional series color; a (token) color ref. When absent the renderer
picks a palette color by series index.
label_color: Option<PropertyValue>Per-series value-label color override; falls back to the chart
value_color then the default on-fill contrasting color.
data_ref: Option<String>Optional binding to a whole series from a DataContext field.
None means the values are inline in ChartSeries::values.
values: Vec<f64>Ordered numeric data points for this series.
Trait Implementations§
Source§impl Clone for ChartSeries
impl Clone for ChartSeries
Source§fn clone(&self) -> ChartSeries
fn clone(&self) -> ChartSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartSeries
impl Debug for ChartSeries
Source§impl PartialEq for ChartSeries
impl PartialEq for ChartSeries
Source§fn eq(&self, other: &ChartSeries) -> bool
fn eq(&self, other: &ChartSeries) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChartSeries
Auto Trait Implementations§
impl Freeze for ChartSeries
impl RefUnwindSafe for ChartSeries
impl Send for ChartSeries
impl Sync for ChartSeries
impl Unpin for ChartSeries
impl UnsafeUnpin for ChartSeries
impl UnwindSafe for ChartSeries
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