pub struct RadarChart<'a> { /* private fields */ }Expand description
A radar (spider) chart.
§Examples
use tui_piechart::{RadarChart, RadarSeries};
let chart = RadarChart::new(
vec!["Speed", "Power", "Range", "Armor", "Agility"],
vec![
RadarSeries::new("Scout", vec![9.0, 3.0, 7.0, 2.0, 8.0]),
RadarSeries::new("Tank", vec![3.0, 8.0, 4.0, 9.0, 2.0]),
],
);Implementations§
Source§impl<'a> RadarChart<'a>
impl<'a> RadarChart<'a>
Sourcepub fn new(axes: Vec<&'a str>, series: Vec<RadarSeries<'a>>) -> Self
pub fn new(axes: Vec<&'a str>, series: Vec<RadarSeries<'a>>) -> Self
Creates a chart from axis labels and series.
Sourcepub const fn base_style(self, style: Style) -> Self
pub const fn base_style(self, style: Style) -> Self
Base style of the whole area.
Trait Implementations§
Source§impl<'a> Clone for RadarChart<'a>
impl<'a> Clone for RadarChart<'a>
Source§impl<'a> Debug for RadarChart<'a>
impl<'a> Debug for RadarChart<'a>
Auto Trait Implementations§
impl<'a> Freeze for RadarChart<'a>
impl<'a> RefUnwindSafe for RadarChart<'a>
impl<'a> Send for RadarChart<'a>
impl<'a> Sync for RadarChart<'a>
impl<'a> Unpin for RadarChart<'a>
impl<'a> UnsafeUnpin for RadarChart<'a>
impl<'a> UnwindSafe for RadarChart<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more