chart_js_rs::objects

Struct XYDataset

source
pub struct XYDataset { /* private fields */ }

Implementations§

§

impl XYDataset

pub fn new() -> Self

pub fn get_background_color(&mut self) -> &mut FnWithArgsOrAny<2>

pub fn background_color(self, value: impl Into<FnWithArgsOrAny<2>>) -> XYDataset

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

pub fn background_color_array<T: Into<String>>( self, value: impl IntoIterator<Item = T>, ) -> XYDataset

pub fn get_bar_percentage(&mut self) -> &mut NumberString

pub fn bar_percentage(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_bar_thickness(&mut self) -> &mut NumberString

pub fn bar_thickness(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_base(&mut self) -> &mut NumberString

pub fn base(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn border_color(self, value: impl Into<String>) -> XYDataset

pub fn get_border_dash(&mut self) -> &mut Vec<NumberString>

pub fn border_dash<T: Into<NumberString>>( self, value: impl IntoIterator<Item = T>, ) -> XYDataset

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

pub fn border_join_style(self, value: impl Into<String>) -> XYDataset

pub fn get_border_radius(&mut self) -> &mut NumberString

pub fn border_radius(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn border_skipped(self, value: impl Into<String>) -> XYDataset

pub fn get_border_width(&mut self) -> &mut Option<NumberStringOrT<Border>>

pub fn border_width( self, value: impl Into<NumberStringOrT<Border>>, ) -> XYDataset

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

pub fn category_label(self, value: impl Into<String>) -> XYDataset

pub fn get_category_percentage(&mut self) -> &mut NumberString

pub fn category_percentage(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_clip(&mut self) -> &mut NumberString

pub fn clip(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_data(&mut self) -> &mut DatasetData

pub fn data(self, value: impl Into<DatasetData>) -> XYDataset

pub fn get_datalabels(&mut self) -> &mut DataLabels

pub fn datalabels(self, value: impl Into<DataLabels>) -> XYDataset

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

pub fn description(self, value: impl Into<String>) -> XYDataset

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

pub fn fill(self, value: impl Into<String>) -> XYDataset

pub fn get_grouped(&mut self) -> &mut Option<bool>

pub fn grouped(self, value: impl Into<bool>) -> XYDataset

pub fn get_hit_radius(&mut self) -> &mut NumberString

pub fn hit_radius(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn hover_background_color(self, value: impl Into<String>) -> XYDataset

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

pub fn hover_border_color(self, value: impl Into<String>) -> XYDataset

pub fn get_hover_border_radius(&mut self) -> &mut NumberString

pub fn hover_border_radius(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_hover_border_width(&mut self) -> &mut NumberString

pub fn hover_border_width(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn axis(self, value: impl Into<String>) -> XYDataset

pub fn get_inflate_amount(&mut self) -> &mut NumberString

pub fn inflate_amount(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn label(self, value: impl Into<String>) -> XYDataset

pub fn get_max_bar_thickness(&mut self) -> &mut NumberString

pub fn max_bar_thickness(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_min_bar_length(&mut self) -> &mut NumberString

pub fn min_bar_length(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_order(&mut self) -> &mut NumberString

pub fn order(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn point_background_color(self, value: impl Into<String>) -> XYDataset

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

pub fn point_border_color(self, value: impl Into<String>) -> XYDataset

pub fn get_point_border_width(&mut self) -> &mut NumberString

pub fn point_border_width(self, value: impl Into<NumberString>) -> XYDataset

pub fn get_point_hit_radius(&mut self) -> &mut NumberString

pub fn point_hit_radius(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn point_hover_background_color(self, value: impl Into<String>) -> XYDataset

pub fn get_point_hover_border_width(&mut self) -> &mut NumberString

pub fn point_hover_border_width( self, value: impl Into<NumberString>, ) -> XYDataset

pub fn get_point_hover_radius(&mut self) -> &mut NumberOrDateString

pub fn point_hover_radius( self, value: impl Into<NumberOrDateString>, ) -> XYDataset

pub fn get_point_radius(&mut self) -> &mut NumberString

pub fn point_radius(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn point_style(self, value: impl Into<String>) -> XYDataset

pub fn get_segment(&mut self) -> &mut Option<Segment>

pub fn segment(self, value: impl Into<Segment>) -> XYDataset

pub fn get_skip_null(&mut self) -> &mut Option<bool>

pub fn skip_null(self, value: impl Into<bool>) -> XYDataset

pub fn get_span_gaps(&mut self) -> &mut Option<bool>

pub fn span_gaps(self, value: impl Into<bool>) -> XYDataset

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

pub fn stack(self, value: impl Into<String>) -> XYDataset

pub fn get_stepped(&mut self) -> &mut Option<BoolString>

pub fn stepped(self, value: impl Into<BoolString>) -> XYDataset

pub fn get_tension(&mut self) -> &mut NumberString

pub fn tension(self, value: impl Into<NumberString>) -> XYDataset

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

pub fn dataset_type(self, value: impl Into<String>) -> XYDataset

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

pub fn x_axis_id(self, value: impl Into<String>) -> XYDataset

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

pub fn y_axis_id(self, value: impl Into<String>) -> XYDataset

pub fn get_z(&mut self) -> &mut NumberString

pub fn z(self, value: impl Into<NumberString>) -> XYDataset

Trait Implementations§

source§

impl Clone for XYDataset

source§

fn clone(&self) -> XYDataset

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for XYDataset

source§

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

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

impl Default for XYDataset

source§

fn default() -> XYDataset

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for XYDataset

source§

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 Ord for XYDataset

source§

fn cmp(&self, other: &XYDataset) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for XYDataset

source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for XYDataset

source§

fn partial_cmp(&self, other: &XYDataset) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for XYDataset

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for XYDataset

source§

impl StructuralPartialEq for XYDataset

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,