pub enum Kind {
Line,
Bar,
HorizontalBar,
Doughnut,
Pie,
Radar,
Scatter,
}Variants§
Line
Bar
HorizontalBar
Bars lying down. For category names too long to stand under an axis — which is most category names.
Doughnut
Pie
Radar
Scatter
Points only. Chart::scatter takes pairs rather than labels.
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
What Chart.js calls it. HorizontalBar is a bar turned on its side by
an option, not a type of its own — it was one in Chart.js 2 and the name
still gets written by people who remember that.
Sourcepub fn colours_each_point(self) -> bool
pub fn colours_each_point(self) -> bool
Whether one dataset is coloured per point rather than as a whole.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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