pub struct Series<X: AxisKindMarker, Y: AxisKindMarker> {
pub type: Option<SeriesType>,
pub name: Option<String>,
pub smooth: Option<bool>,
pub area_style: Option<AreaStyle>,
pub data: SeriesDataSource<X, Y>,
pub show_symbol: Option<bool>,
pub symbol: Option<DataPointSymbol>,
pub symbol_size: Option<usize>,
pub extra: Option<Value>,
}
Expand description
Series definition
Fields§
§type: Option<SeriesType>
Chart type
name: Option<String>
Series name
smooth: Option<bool>
§area_style: Option<AreaStyle>
§data: SeriesDataSource<X, Y>
Data array
show_symbol: Option<bool>
if showSymbol is false symbol will still show on hover if the tooltip trigger is an axis
symbol: Option<DataPointSymbol>
if the show symbol is none, line won’t react on hover anymore
symbol_size: Option<usize>
§extra: Option<Value>
Additional raw series options
Implementations§
Source§impl<X: AxisKindMarker, Y: AxisKindMarker> Series<X, Y>
impl<X: AxisKindMarker, Y: AxisKindMarker> Series<X, Y>
pub fn new( name: String, type: SeriesType, data: SeriesDataSource<X, Y>, ) -> Series<X, Y>
Trait Implementations§
Source§impl<X: Clone + AxisKindMarker, Y: Clone + AxisKindMarker> Clone for Series<X, Y>
impl<X: Clone + AxisKindMarker, Y: Clone + AxisKindMarker> Clone for Series<X, Y>
Source§impl<X: Debug + AxisKindMarker, Y: Debug + AxisKindMarker> Debug for Series<X, Y>
impl<X: Debug + AxisKindMarker, Y: Debug + AxisKindMarker> Debug for Series<X, Y>
Auto Trait Implementations§
impl<X, Y> Freeze for Series<X, Y>
impl<X, Y> RefUnwindSafe for Series<X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<X, Y> Send for Series<X, Y>
impl<X, Y> Sync for Series<X, Y>
impl<X, Y> Unpin for Series<X, Y>
impl<X, Y> UnwindSafe for Series<X, Y>where
X: UnwindSafe,
Y: UnwindSafe,
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