pub struct PieChartSpec {
pub domain: ChartData,
pub series: ChartData,
pub legend_position: Option<String>,
pub pie_hole: Option<f64>,
pub extra: BTreeMap<String, Value>,
}Expand description
A pie chart’s configuration — PieChartSpec.
Fields§
§domain: ChartDataThe category labels (the pie’s slices).
series: ChartDataThe values (the slices’ sizes).
legend_position: Option<String>Where the legend is drawn.
pie_hole: Option<f64>0.0-1.0: the radius of the center hole, as a fraction of the
pie’s radius. 0.0 (or absent) is a solid pie; anything above 0
is a donut.
extra: BTreeMap<String, Value>Every other PieChartSpec field this crate doesn’t model
(threeDimensional).
Trait Implementations§
Source§impl Clone for PieChartSpec
impl Clone for PieChartSpec
Source§impl Debug for PieChartSpec
impl Debug for PieChartSpec
Source§impl Default for PieChartSpec
impl Default for PieChartSpec
Source§impl<'de> Deserialize<'de> for PieChartSpec
impl<'de> Deserialize<'de> for PieChartSpec
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 PieChartSpec
impl PartialEq for PieChartSpec
Source§impl Serialize for PieChartSpec
impl Serialize for PieChartSpec
impl StructuralPartialEq for PieChartSpec
Auto Trait Implementations§
impl Freeze for PieChartSpec
impl RefUnwindSafe for PieChartSpec
impl Send for PieChartSpec
impl Sync for PieChartSpec
impl Unpin for PieChartSpec
impl UnsafeUnpin for PieChartSpec
impl UnwindSafe for PieChartSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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