pub struct SeriesSpec {
pub name: String,
pub kind: SeriesKind,
pub points: Vec<[f64; 2]>,
pub color: Option<Rgba>,
pub width: f32,
pub marker: Option<MarkerSpec>,
pub fill_opacity: f32,
pub y_axis: YAxis,
pub legend: bool,
pub baseline: f64,
pub bar_width: Option<f64>,
}Expand description
One series in a PlotSpec.
Fields§
§name: StringLegend name.
kind: SeriesKindHow the points are drawn.
points: Vec<[f64; 2]>x/y points in data units.
color: Option<Rgba>Stroke or fill color; the spec palette when None.
width: f32Stroke width in pixels.
marker: Option<MarkerSpec>Marker for scatter, or for vertices of a line.
fill_opacity: f32Fill opacity for areas and bars, 0–1.
y_axis: YAxisAxis the series is measured on.
legend: boolWhether the series appears in the legend.
baseline: f64Baseline for bars.
bar_width: Option<f64>Fixed bar width in data units; automatic when None.
Implementations§
Trait Implementations§
Source§impl Clone for SeriesSpec
impl Clone for SeriesSpec
Source§impl Debug for SeriesSpec
impl Debug for SeriesSpec
Source§impl Default for SeriesSpec
impl Default for SeriesSpec
Source§impl<'de> Deserialize<'de> for SeriesSpecwhere
SeriesSpec: Default,
impl<'de> Deserialize<'de> for SeriesSpecwhere
SeriesSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SeriesSpec
impl PartialEq for SeriesSpec
Source§impl Serialize for SeriesSpec
impl Serialize for SeriesSpec
impl StructuralPartialEq for SeriesSpec
Auto Trait Implementations§
impl Forget for SeriesSpec
impl Freeze for SeriesSpec
impl Move for SeriesSpec
impl RefUnwindSafe for SeriesSpec
impl Send for SeriesSpecwhere
RawVecInner: Send,
impl Sync for SeriesSpecwhere
RawVecInner: Sync,
impl Unpin for SeriesSpec
impl UnsafeUnpin for SeriesSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
impl UnwindSafe for SeriesSpecwhere
RawVecInner: 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