pub struct Props {
pub id: String,
pub chart_type: ChartType,
pub data: Vec<DataPoint>,
pub title: Option<String>,
pub width: u32,
pub height: u32,
pub color: Option<String>,
}Expand description
Chart rendering properties.
Fields§
§id: StringUnique ID for the chart container
chart_type: ChartTypeBar or Line
data: Vec<DataPoint>Data points to plot
title: Option<String>Optional title above the chart
width: u32SVG width in px (default 400)
height: u32SVG height in px (default 200)
color: Option<String>CSS color for bars/line/dots; defaults to var(–mui-accent)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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