pub struct ChartData {
pub categories: Vec<String>,
pub series: Vec<ChartSeries>,
}Expand description
Inline chart dataset parsed from a ::chart block body — a shared category
axis plus one or more named series. When a Chart block has data: None
it falls back to the live-data mount point (source=) / static placeholder.
For cartesian charts (line/area/bar/stacked-bar) categories are x-axis
labels; for scatter they are the numeric x-values (kept as strings); for
radar they are the axis labels; for pie/donut they are the slice labels and
only the first series is used.
Fields§
§categories: Vec<String>Category / x-axis / slice / axis labels (one per data point).
series: Vec<ChartSeries>One or more named series of values aligned to categories.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChartData
impl<'de> Deserialize<'de> for ChartData
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
Auto Trait Implementations§
impl Freeze for ChartData
impl RefUnwindSafe for ChartData
impl Send for ChartData
impl Sync for ChartData
impl Unpin for ChartData
impl UnsafeUnpin for ChartData
impl UnwindSafe for ChartData
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