pub struct DoughnutChart {
pub vary_colors: Option<bool>,
pub series: Vec<PieSeries>,
pub first_slice_angle_degrees: Option<u16>,
pub hole_size_percent: Option<u8>,
}Expand description
A doughnut chart (<c:doughnutChart>, CT_DoughnutChart) — reuses EG_PieChartShared exactly
like PieChart (the same PieSeries, no new series type needed), plus a hole size.
Structurally axis-less, same as PieChart (confirmed the same way: EG_PieChartShared has no
axId).
Not modeled: dLbls. There is no 3D doughnut variant in the schema at all (unlike pie), so
nothing is deferred there either.
Fields§
§vary_colors: Option<bool>§series: Vec<PieSeries>§first_slice_angle_degrees: Option<u16><c:firstSliceAng val=".."/> — 0.=360 degrees.
hole_size_percent: Option<u8><c:holeSize val=".."/> — ST_HoleSize (ECMA-376 §5.7.3.18), a plain restriction of
xsd:unsignedByte in 10.=90, schema default 10. Written as a bare integer (no %
suffix) on write; the reader still tolerates a stray % suffix on input for leniency.
Implementations§
Source§impl DoughnutChart
impl DoughnutChart
pub fn new() -> DoughnutChart
pub fn with_vary_colors(self, vary: bool) -> DoughnutChart
pub fn with_series(self, series: PieSeries) -> DoughnutChart
pub fn with_first_slice_angle_degrees(self, degrees: u16) -> DoughnutChart
pub fn with_hole_size_percent(self, percent: u8) -> DoughnutChart
Trait Implementations§
Source§impl Clone for DoughnutChart
impl Clone for DoughnutChart
Source§fn clone(&self) -> DoughnutChart
fn clone(&self) -> DoughnutChart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoughnutChart
impl Debug for DoughnutChart
Source§impl Default for DoughnutChart
impl Default for DoughnutChart
Source§fn default() -> DoughnutChart
fn default() -> DoughnutChart
Returns the “default value” for a type. Read more
Source§impl PartialEq for DoughnutChart
impl PartialEq for DoughnutChart
impl StructuralPartialEq for DoughnutChart
Auto Trait Implementations§
impl Freeze for DoughnutChart
impl RefUnwindSafe for DoughnutChart
impl Send for DoughnutChart
impl Sync for DoughnutChart
impl Unpin for DoughnutChart
impl UnsafeUnpin for DoughnutChart
impl UnwindSafe for DoughnutChart
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