Skip to main content

EuvChartLineSeries

Struct EuvChartLineSeries 

Source
pub struct EuvChartLineSeries { /* private fields */ }
Expand description

Line and area series configuration supporting straight, smooth Catmull-Rom, stepped, stacked, and dashed strokes.

Implementations§

Source§

impl EuvChartLineSeries

Fluent builders and accessors for EuvChartLineSeries.

Source

pub fn from_values(values: Vec<f32>) -> Self

Creates a line series from dense numeric values.

§Arguments
  • Vec<f32> - Ordered Y values.
§Returns
  • Self - Line series.
Source

pub fn from_nullable(values: Vec<Option<f32>>) -> Self

Creates a line series supporting None null gaps.

§Arguments
  • Vec<Option<f32>> - Nullable Y values.
§Returns
  • Self - Line series.
Source

pub fn from_xy(points: Vec<(f32, f32)>) -> Self

Creates a line series from explicit (x, y) coordinate pairs.

§Arguments
  • Vec<(f32, f32)> - Explicit (x, y) coordinates.
§Returns
  • Self - Line series.
Source

pub fn smooth(self, smooth: bool) -> Self

Enables or disables smooth Catmull-Rom curve interpolation.

§Arguments
  • Self - Source line series.
  • bool - Smooth curve flag.
§Returns
  • Self - Updated line series.
Source

pub fn step(self, step: EuvChartStepMode) -> Self

Sets step-line interpolation mode.

§Arguments
  • Self - Source line series.
  • EuvChartStepMode - Step mode.
§Returns
  • Self - Updated line series.
Source

pub fn area(self, opacity: f32) -> Self

Enables translucent area shading under the line.

§Arguments
  • Self - Source line series.
  • f32 - Area fill opacity in [0.0, 1.0].
§Returns
  • Self - Updated line series.
Source

pub fn stack<TextValue>(self, stack: TextValue) -> Self
where TextValue: Into<String>,

Assigns a stack group name for stacked line/area rendering.

§Arguments
  • Self - Source line series.
  • TextValue - Stack group key.
§Returns
  • Self - Updated line series.
Source

pub fn dashed(self, dashed: bool) -> Self

Enables dashed stroke rendering.

§Arguments
  • Self - Source line series.
  • bool - Dashed stroke flag.
§Returns
  • Self - Updated line series.
Source

pub fn symbol(self, symbol: EuvChartSymbol, size: f32) -> Self

Configures vertex symbol shape and radius.

§Arguments
  • Self - Source line series.
  • EuvChartSymbol - Symbol shape.
  • f32 - Symbol radius in logical pixels.
§Returns
  • Self - Updated line series.
Source

pub fn connect_nulls(self, connect: bool) -> Self

Controls whether None gaps are bridged continuously.

§Arguments
  • Self - Source line series.
  • bool - Connect-nulls flag.
§Returns
  • Self - Updated line series.
Source

pub fn axes(self, x_axis_index: usize, y_axis_index: usize) -> Self

Binds the series to a specific (x_axis_index, y_axis_index) pair.

§Arguments
  • Self - Source line series.
  • usize - X axis index.
  • usize - Y axis index.
§Returns
  • Self - Updated line series.
Source

pub fn coordinate_system(self, coord: EuvChartCoordinateSystem) -> Self

Binds this line series to a non-default coordinate system (e.g. Polar).

§Arguments
  • Self - Source line series.
  • EuvChartCoordinateSystem - Target coordinate system.
§Returns
  • Self - Updated line series.
Source

pub fn mark_point(self, mark: EuvChartMarkPoint) -> Self

Attaches a MarkPoint annotation.

§Arguments
  • Self - Source line series.
  • EuvChartMarkPoint - Mark point descriptor.
§Returns
  • Self - Updated line series.
Source

pub fn mark_line(self, mark: EuvChartMarkLine) -> Self

Attaches a MarkLine annotation.

§Arguments
  • Self - Source line series.
  • EuvChartMarkLine - Mark line descriptor.
§Returns
  • Self - Updated line series.
Source

pub fn mark_area(self, mark: EuvChartMarkArea) -> Self

Attaches a MarkArea annotation.

§Arguments
  • Self - Source line series.
  • EuvChartMarkArea - Mark area descriptor.
§Returns
  • Self - Updated line series.
Source

pub fn encode(self, encode: EuvChartEncode) -> Self

Attaches a Dataset column encoding mapping.

§Arguments
  • Self - Source line series.
  • EuvChartEncode - Column mapping.
§Returns
  • Self - Updated line series.
Source

pub fn stack_opt(&self) -> Option<&str>

Returns the optional stack group identifier.

§Arguments
  • &Self - Line series.
§Returns
  • Option<&str> - Stack group key.
Source

pub fn encode_opt(&self) -> Option<&EuvChartEncode>

Returns the optional dataset encode mapping.

§Arguments
  • &Self - Line series.
§Returns
  • Option<&EuvChartEncode> - Dataset column mapping.
Source§

impl EuvChartLineSeries

Source

pub fn get_values(&self) -> &Vec<Option<f32>>

Source

pub fn get_mut_values(&mut self) -> &mut Vec<Option<f32>>

Source

pub fn set_values(&mut self, val: Vec<Option<f32>>) -> &mut Self

Source

pub fn get_xy_points(&self) -> &Vec<(f32, f32)>

Source

pub fn get_mut_xy_points(&mut self) -> &mut Vec<(f32, f32)>

Source

pub fn set_xy_points(&mut self, val: Vec<(f32, f32)>) -> &mut Self

Source

pub fn get_smooth(&self) -> bool

Source

pub fn get_mut_smooth(&mut self) -> &mut bool

Source

pub fn set_smooth(&mut self, val: bool) -> &mut Self

Source

pub fn get_step(&self) -> EuvChartStepMode

Source

pub fn get_mut_step(&mut self) -> &mut EuvChartStepMode

Source

pub fn set_step(&mut self, val: EuvChartStepMode) -> &mut Self

Source

pub fn get_area_opacity(&self) -> f32

Source

pub fn get_mut_area_opacity(&mut self) -> &mut f32

Source

pub fn set_area_opacity(&mut self, val: f32) -> &mut Self

Source

pub fn get_area_gradient(&self) -> bool

Source

pub fn get_mut_area_gradient(&mut self) -> &mut bool

Source

pub fn set_area_gradient(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_stack(&mut self) -> &mut Option<String>

Source

pub fn set_stack(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_dashed(&self) -> bool

Source

pub fn get_mut_dashed(&mut self) -> &mut bool

Source

pub fn set_dashed(&mut self, val: bool) -> &mut Self

Source

pub fn get_line_width(&self) -> f32

Source

pub fn get_mut_line_width(&mut self) -> &mut f32

Source

pub fn set_line_width(&mut self, val: f32) -> &mut Self

Source

pub fn get_symbol(&self) -> EuvChartSymbol

Source

pub fn get_mut_symbol(&mut self) -> &mut EuvChartSymbol

Source

pub fn set_symbol(&mut self, val: EuvChartSymbol) -> &mut Self

Source

pub fn get_symbol_size(&self) -> f32

Source

pub fn get_mut_symbol_size(&mut self) -> &mut f32

Source

pub fn set_symbol_size(&mut self, val: f32) -> &mut Self

Source

pub fn get_connect_nulls(&self) -> bool

Source

pub fn get_mut_connect_nulls(&mut self) -> &mut bool

Source

pub fn set_connect_nulls(&mut self, val: bool) -> &mut Self

Source

pub fn get_show_labels(&self) -> bool

Source

pub fn get_mut_show_labels(&mut self) -> &mut bool

Source

pub fn set_show_labels(&mut self, val: bool) -> &mut Self

Source

pub fn get_coordinate_system(&self) -> EuvChartCoordinateSystem

Source

pub fn get_mut_coordinate_system(&mut self) -> &mut EuvChartCoordinateSystem

Source

pub fn set_coordinate_system( &mut self, val: EuvChartCoordinateSystem, ) -> &mut Self

Source

pub fn get_x_axis_index(&self) -> usize

Source

pub fn get_mut_x_axis_index(&mut self) -> &mut usize

Source

pub fn set_x_axis_index(&mut self, val: usize) -> &mut Self

Source

pub fn get_y_axis_index(&self) -> usize

Source

pub fn get_mut_y_axis_index(&mut self) -> &mut usize

Source

pub fn set_y_axis_index(&mut self, val: usize) -> &mut Self

Source

pub fn get_annotations(&self) -> &EuvChartAnnotations

Source

pub fn get_mut_annotations(&mut self) -> &mut EuvChartAnnotations

Source

pub fn set_annotations(&mut self, val: EuvChartAnnotations) -> &mut Self

Source

pub fn get_mut_encode(&mut self) -> &mut Option<EuvChartEncode>

Source

pub fn set_encode(&mut self, val: Option<EuvChartEncode>) -> &mut Self

Trait Implementations§

Source§

impl Clone for EuvChartLineSeries

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EuvChartLineSeries

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EuvChartLineSeries

Default line series configuration.

Source§

fn default() -> Self

Creates a crisp solid line series with circular point markers.

§Returns
  • Self - Default line series.
Source§

impl PartialEq for EuvChartLineSeries

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EuvChartLineSeries

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.