pub struct RadialChart {Show 16 fields
pub decorations: DecorationLayout,
pub title: String,
pub slices: Vec<RadialSlice>,
pub kind: RadialKind,
pub start_angle_degrees: f32,
pub split: Option<RadialSplit>,
pub style: RadialStyle,
pub labels: RadialLabels,
pub label_format: RadialLabelFormat,
pub label_decimals: usize,
pub value_suffix: String,
pub interaction: RadialInteraction,
pub font_family: String,
pub font_size: f32,
pub label_color: Color,
pub background: Color,
}Fields§
§decorations: DecorationLayoutEditable decoration positions and selection, in logical pixels.
title: String§slices: Vec<RadialSlice>§kind: RadialKind§start_angle_degrees: f32Clockwise from the right; -90 starts at the top.
split: Option<RadialSplit>§style: RadialStyle§labels: RadialLabels§label_format: RadialLabelFormat§label_decimals: usize§value_suffix: String§interaction: RadialInteraction§font_family: String§font_size: f32§label_color: Color§background: ColorImplementations§
Source§impl RadialChart
impl RadialChart
Sourcepub fn slice(&self, target: RadialTarget) -> Option<&RadialSlice>
pub fn slice(&self, target: RadialTarget) -> Option<&RadialSlice>
Resolve an original array index; invalid groups/indices return None.
Sourcepub fn slice_mut(&mut self, target: RadialTarget) -> Option<&mut RadialSlice>
pub fn slice_mut(&mut self, target: RadialTarget) -> Option<&mut RadialSlice>
Edit the source model, then prepare a new renderer frame to display it.
Sourcepub fn label_lines(&self, slice: &RadialSlice, total: f64) -> Vec<String>
pub fn label_lines(&self, slice: &RadialSlice, total: f64) -> Vec<String>
Two label lines at most. Values use the original units; detail percentages use the detail subtotal. Formatting never changes numeric data. Call on a validated chart and pass the positive finite sum for this circle.
Trait Implementations§
Source§impl Clone for RadialChart
impl Clone for RadialChart
Source§impl Debug for RadialChart
impl Debug for RadialChart
Source§impl Default for RadialChart
impl Default for RadialChart
Source§impl<'de> Deserialize<'de> for RadialChart
impl<'de> Deserialize<'de> for RadialChart
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
Source§impl PartialEq for RadialChart
impl PartialEq for RadialChart
Source§impl Serialize for RadialChart
impl Serialize for RadialChart
impl StructuralPartialEq for RadialChart
Auto Trait Implementations§
impl Freeze for RadialChart
impl RefUnwindSafe for RadialChart
impl Send for RadialChart
impl Sync for RadialChart
impl Unpin for RadialChart
impl UnsafeUnpin for RadialChart
impl UnwindSafe for RadialChart
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