#[non_exhaustive]pub enum ChartKind {
Bar,
Line,
Area,
Pie,
Doughnut,
Scatter,
Sparkline,
SparkArea,
Radar,
RadialBar,
Candlestick,
}Expand description
The kind of a chart.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bar
Vertical bars, side by side per series.
Line
Lines with a dot at each point.
Area
Lines with the area under them filled.
Pie
Slices of a circle; uses the first series.
Doughnut
Slices of a ring; uses the first series.
Scatter
Dots at numeric positions.
Sparkline
A small line without axes or text, to sit in a row of a table.
SparkArea
A smoothed line over a filled area, without axes or text.
Radar
Series as polygons over spokes, one spoke per category.
RadialBar
One ring per category, as long as its value.
Candlestick
What a price did in each category: four series, in the order open, high, low and close.
Trait Implementations§
impl Copy for ChartKind
Source§impl<'de> Deserialize<'de> for ChartKind
impl<'de> Deserialize<'de> for ChartKind
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 ChartKind
impl StructuralPartialEq for ChartKind
Auto Trait Implementations§
impl Freeze for ChartKind
impl RefUnwindSafe for ChartKind
impl Send for ChartKind
impl Sync for ChartKind
impl Unpin for ChartKind
impl UnsafeUnpin for ChartKind
impl UnwindSafe for ChartKind
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