Skip to main content

EuvChartAxis

Struct EuvChartAxis 

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

Axis scale, tick, split-line, and label configuration for Cartesian, Polar, and SingleAxis charts.

Implementations§

Source§

impl EuvChartAxis

Constructors, fluent builders, and safe option accessors for EuvChartAxis.

Source

pub fn category(categories: Vec<String>) -> Self

Creates a discrete Category axis with the provided labels.

§Arguments
  • Vec<String> - Ordered category labels.
§Returns
  • Self - Category axis configuration.
Source

pub fn value() -> Self

Creates a continuous linear Value axis.

§Returns
  • Self - Value axis configuration.
Source

pub fn time() -> Self

Creates a continuous Time axis formatting numeric timestamps.

§Returns
  • Self - Time axis configuration.
Source

pub fn log() -> Self

Creates a base-10 logarithmic Log axis.

§Returns
  • Self - Logarithmic axis configuration.
Source

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

Sets the axis caption name fluently.

§Arguments
  • Self - Source axis.
  • TextValue - Axis name text.
§Returns
  • Self - Updated axis.
Source

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

Sets a unit suffix appended to numeric tick labels.

§Arguments
  • Self - Source axis.
  • TextValue - Unit suffix (e.g. "%" or "ms").
§Returns
  • Self - Updated axis.
Source

pub fn min(self, min: f32) -> Self

Sets an explicit lower domain bound.

§Arguments
  • Self - Source axis.
  • f32 - Explicit minimum domain value.
§Returns
  • Self - Updated axis.
Source

pub fn max(self, max: f32) -> Self

Sets an explicit upper domain bound.

§Arguments
  • Self - Source axis.
  • f32 - Explicit maximum domain value.
§Returns
  • Self - Updated axis.
Source

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

Reverses axis direction when inverse is true.

§Arguments
  • Self - Source axis.
  • bool - Inverse direction flag.
§Returns
  • Self - Updated axis.
Source

pub fn split_number(self, count: usize) -> Self

Sets the target tick split count.

§Arguments
  • Self - Source axis.
  • usize - Split interval count.
§Returns
  • Self - Updated axis.
Source

pub fn show_split_line(self, show: bool) -> Self

Sets whether grid split lines are rendered.

§Arguments
  • Self - Source axis.
  • bool - Split line visibility flag.
§Returns
  • Self - Updated axis.
Source

pub fn show_split_area(self, show: bool) -> Self

Sets whether alternating split background bands are rendered.

§Arguments
  • Self - Source axis.
  • bool - Split area visibility flag.
§Returns
  • Self - Updated axis.
Source

pub fn grid_index(self, idx: usize) -> Self

Assigns this axis to a specific subplot grid index.

§Arguments
  • Self - Source axis.
  • usize - Subplot grid index.
§Returns
  • Self - Updated axis.
Source

pub fn position(self, pos: EuvChartPosition) -> Self

Overrides the axis side placement for dual-axis layouts.

§Arguments
  • Self - Source axis.
  • EuvChartPosition - Explicit axis side.
§Returns
  • Self - Updated axis.
Source

pub fn min_opt(&self) -> Option<f32>

Returns the optional explicit minimum domain bound.

§Arguments
  • &Self - Axis configuration.
§Returns
  • Option<f32> - Explicit lower bound when configured.
Source

pub fn max_opt(&self) -> Option<f32>

Returns the optional explicit maximum domain bound.

§Arguments
  • &Self - Axis configuration.
§Returns
  • Option<f32> - Explicit upper bound when configured.
Source

pub fn position_opt(&self) -> Option<EuvChartPosition>

Returns the optional explicit side override.

§Arguments
  • &Self - Axis configuration.
§Returns
  • Option<EuvChartPosition> - Explicit side when set.
Source§

impl EuvChartAxis

Source

pub fn get_axis_type(&self) -> EuvChartAxisType

Source

pub fn get_mut_axis_type(&mut self) -> &mut EuvChartAxisType

Source

pub fn set_axis_type(&mut self, val: EuvChartAxisType) -> &mut Self

Source

pub fn get_name(&self) -> &String

Source

pub fn get_mut_name(&mut self) -> &mut String

Source

pub fn set_name(&mut self, val: String) -> &mut Self

Source

pub fn get_unit_suffix(&self) -> &String

Source

pub fn get_mut_unit_suffix(&mut self) -> &mut String

Source

pub fn set_unit_suffix(&mut self, val: String) -> &mut Self

Source

pub fn get_categories(&self) -> &Vec<String>

Source

pub fn get_mut_categories(&mut self) -> &mut Vec<String>

Source

pub fn set_categories(&mut self, val: Vec<String>) -> &mut Self

Source

pub fn get_grid_index(&self) -> usize

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn get_inverse(&self) -> bool

Source

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

Source

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

Source

pub fn get_split_number(&self) -> usize

Source

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

Source

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

Source

pub fn get_show_axis_line(&self) -> bool

Source

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

Source

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

Source

pub fn get_show_axis_tick(&self) -> bool

Source

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

Source

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

Source

pub fn get_show_axis_label(&self) -> bool

Source

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

Source

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

Source

pub fn get_show_split_line(&self) -> bool

Source

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

Source

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

Source

pub fn get_show_split_area(&self) -> bool

Source

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

Source

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

Source

pub fn get_mut_position(&mut self) -> &mut Option<EuvChartPosition>

Source

pub fn set_position(&mut self, val: Option<EuvChartPosition>) -> &mut Self

Trait Implementations§

Source§

impl Clone for EuvChartAxis

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 EuvChartAxis

Source§

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

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

impl Default for EuvChartAxis

Default continuous numeric value axis configuration.

Source§

fn default() -> Self

Creates a default Value axis with ticks, labels, and subtle grid split lines.

§Returns
  • Self - Default axis configuration.
Source§

impl PartialEq for EuvChartAxis

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 EuvChartAxis

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.