#[repr(C)]pub enum ChartStyle {
Bar = 0,
Line = 1,
StackedBar = 2,
StackedBar100 = 3,
Pie = 4,
Donut = 5,
Rings = 6,
Gauge = 7,
}Expand description
How a Chart draws its series.
Cartesian styles plot every series over the shared labels x-axis:
Bar/Line (grouped bars / one polyline per series), StackedBar (series stack to a total
per x-slot), StackedBar100 (each x-slot fills to 100% — series as proportions).
Circular styles ignore the x-axis and the axis flag: Pie/Donut turn each series
into one wedge sized by its magnitude (Donut leaves a center hole); Rings draws concentric
progress arcs (Apple-Watch fitness style), one per series, swept by sum(values) / goal;
Gauge draws a single arc for the first series’ value / goal with the number in the center.
Variants§
Trait Implementations§
Source§impl Clone for ChartStyle
impl Clone for ChartStyle
impl Copy for ChartStyle
Source§impl Debug for ChartStyle
impl Debug for ChartStyle
Source§impl<'de> Deserialize<'de> for ChartStyle
impl<'de> Deserialize<'de> for ChartStyle
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
impl Eq for ChartStyle
Source§impl<'ʄ> Facet<'ʄ> for ChartStyle
impl<'ʄ> Facet<'ʄ> for ChartStyle
Source§impl PartialEq for ChartStyle
impl PartialEq for ChartStyle
Source§impl Serialize for ChartStyle
impl Serialize for ChartStyle
impl StructuralPartialEq for ChartStyle
Auto Trait Implementations§
impl Freeze for ChartStyle
impl RefUnwindSafe for ChartStyle
impl Send for ChartStyle
impl Sync for ChartStyle
impl Unpin for ChartStyle
impl UnsafeUnpin for ChartStyle
impl UnwindSafe for ChartStyle
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