pub struct PieChartPlotF32<'a> { /* private fields */ }Expand description
Float version of pie chart for better performance with f32 data
Implementations§
Source§impl<'a> PieChartPlotF32<'a>
impl<'a> PieChartPlotF32<'a>
Sourcepub fn new(
label_ids: Vec<&'a str>,
values: &'a [f32],
center_x: f64,
center_y: f64,
radius: f64,
) -> Self
pub fn new( label_ids: Vec<&'a str>, values: &'a [f32], center_x: f64, center_y: f64, radius: f64, ) -> Self
Create a new f32 pie chart plot
Sourcepub fn with_label_format(self, fmt: Option<&'a str>) -> Self
pub fn with_label_format(self, fmt: Option<&'a str>) -> Self
Set the label format for slice values
Sourcepub fn with_start_angle(self, angle: f64) -> Self
pub fn with_start_angle(self, angle: f64) -> Self
Set the starting angle in degrees
Sourcepub fn with_flags(self, flags: PieChartFlags) -> Self
pub fn with_flags(self, flags: PieChartFlags) -> Self
Set pie chart flags for customization
Ignore hidden slices when drawing
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PieChartPlotF32<'a>
impl<'a> RefUnwindSafe for PieChartPlotF32<'a>
impl<'a> Send for PieChartPlotF32<'a>
impl<'a> Sync for PieChartPlotF32<'a>
impl<'a> Unpin for PieChartPlotF32<'a>
impl<'a> UnwindSafe for PieChartPlotF32<'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