pub struct RadialSlice {
pub label: String,
pub value: f64,
pub color: Color,
pub explode: f32,
pub style: Option<RadialStyle>,
pub labels: Option<RadialLabels>,
pub label_format: Option<RadialLabelFormat>,
pub label_color: Option<Color>,
}Expand description
One category. Construct with RadialSlice::new; optional fields inherit
chart settings. Zero-valued slices keep their index but have no visible surface.
Fields§
§label: String§value: f64§color: Color§explode: f32Offset along the slice bisector, as a fraction of the outer radius.
style: Option<RadialStyle>None inherits the chart style. Some replaces the entire style, including camera tilt and depth; later chart-style edits do not propagate here.
labels: Option<RadialLabels>None inherits placement; Some(RadialLabels::None) hides this label.
label_format: Option<RadialLabelFormat>None inherits the chart’s label content format.
label_color: Option<Color>Explicit color overrides automatic inside-label contrast selection.
Implementations§
Trait Implementations§
Source§impl Clone for RadialSlice
impl Clone for RadialSlice
Source§impl Debug for RadialSlice
impl Debug for RadialSlice
Source§impl<'de> Deserialize<'de> for RadialSlice
impl<'de> Deserialize<'de> for RadialSlice
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 RadialSlice
impl PartialEq for RadialSlice
Source§impl Serialize for RadialSlice
impl Serialize for RadialSlice
impl StructuralPartialEq for RadialSlice
Auto Trait Implementations§
impl Freeze for RadialSlice
impl RefUnwindSafe for RadialSlice
impl Send for RadialSlice
impl Sync for RadialSlice
impl Unpin for RadialSlice
impl UnsafeUnpin for RadialSlice
impl UnwindSafe for RadialSlice
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