Struct chart_js_rs::types::XYDataset
source · pub struct XYDataset {Show 48 fields
pub backgroundColor: String,
pub barPercentage: NumberString,
pub barThickness: NumberString,
pub base: NumberString,
pub borderColor: String,
pub borderDash: Vec<NumberString>,
pub borderJoinStyle: String,
pub borderRadius: NumberString,
pub borderSkipped: String,
pub borderWidth: NumberString,
pub category_label: String,
pub categoryPercentage: NumberString,
pub clip: NumberString,
pub data: DatasetData,
pub datalabels: DataLabels,
pub description: String,
pub fill: String,
pub grouped: Option<bool>,
pub hitRadius: NumberString,
pub hoverBackgroundColor: String,
pub hoverBorderColor: String,
pub hoverBorderRadius: NumberString,
pub hoverBorderWidth: NumberString,
pub indexAxis: String,
pub inflateAmount: NumberString,
pub label: String,
pub maxBarThickness: NumberString,
pub minBarLength: NumberString,
pub order: NumberString,
pub pointBackgroundColor: String,
pub pointBorderColor: String,
pub pointBorderWidth: NumberString,
pub pointHitRadius: NumberString,
pub pointHoverBackgroundColor: String,
pub pointHoverBorderWidth: NumberString,
pub pointHoverRadius: NumberOrDateString,
pub pointRadius: NumberString,
pub pointStyle: String,
pub segment: Option<Segment>,
pub skipNull: Option<bool>,
pub spanGaps: Option<bool>,
pub stack: String,
pub stepped: Option<BoolString>,
pub tension: NumberString,
pub type: String,
pub xAxisID: String,
pub yAxisID: String,
pub z: NumberString,
}Fields§
§backgroundColor: String§barPercentage: NumberString§barThickness: NumberString§base: NumberString§borderColor: String§borderDash: Vec<NumberString>§borderJoinStyle: String§borderRadius: NumberString§borderSkipped: String§borderWidth: NumberString§category_label: String§categoryPercentage: NumberString§clip: NumberString§data: DatasetData§datalabels: DataLabelsUse Default::default() if this isn’t required
description: String§fill: String§grouped: Option<bool>§hitRadius: NumberString§hoverBackgroundColor: String§hoverBorderColor: String§hoverBorderRadius: NumberString§hoverBorderWidth: NumberString§indexAxis: String§inflateAmount: NumberString§label: String§maxBarThickness: NumberString§minBarLength: NumberString§order: NumberString§pointBackgroundColor: String§pointBorderColor: String§pointBorderWidth: NumberString§pointHitRadius: NumberString§pointHoverBackgroundColor: String§pointHoverBorderWidth: NumberString§pointHoverRadius: NumberOrDateString§pointRadius: NumberString§pointStyle: String§segment: Option<Segment>§skipNull: Option<bool>§spanGaps: Option<bool>§stack: String§stepped: Option<BoolString>§tension: NumberString§type: String§xAxisID: String§yAxisID: String§z: NumberStringTrait Implementations§
source§impl<'de> Deserialize<'de> for XYDataset
impl<'de> Deserialize<'de> for XYDataset
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 Ord for XYDataset
impl Ord for XYDataset
source§impl PartialEq for XYDataset
impl PartialEq for XYDataset
source§impl PartialOrd for XYDataset
impl PartialOrd for XYDataset
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for XYDataset
impl StructuralPartialEq for XYDataset
Auto Trait Implementations§
impl Freeze for XYDataset
impl RefUnwindSafe for XYDataset
impl Send for XYDataset
impl Sync for XYDataset
impl Unpin for XYDataset
impl UnwindSafe for XYDataset
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