pub struct PieOptions {Show 13 fields
pub radius: Option<String>,
pub inner_radius: Option<String>,
pub center: Option<Vec<String>>,
pub start_angle: Option<f64>,
pub min_angle: Option<f64>,
pub max_angle: Option<f64>,
pub selected_offset: Option<f64>,
pub sort: Option<bool>,
pub rose_type: Option<String>,
pub label: Option<LabelOption>,
pub label_line: Option<LineStyleOption>,
pub round_cap: Option<bool>,
pub avoid_label_overlap: Option<bool>,
}Expand description
The options specific to a pie series.
Fields§
§radius: Option<String>The radius of the pie, as a percentage of the smaller of the container width and height.
inner_radius: Option<String>The inner radius of the doughnut, as a percentage of the outer radius.
center: Option<Vec<String>>The centre of the pie, as a percentage of the container.
start_angle: Option<f64>The angle the first slice starts at, in degrees.
min_angle: Option<f64>The angle between two slices, in degrees.
max_angle: Option<f64>The angle the slices are drawn through, in degrees.
selected_offset: Option<f64>The angle of the selected slice, in degrees.
sort: Option<bool>Whether the slices are sorted by value.
rose_type: Option<String>Whether the pie is drawn as a rose chart.
label: Option<LabelOption>The label of a slice.
label_line: Option<LineStyleOption>The line between a slice and its label.
round_cap: Option<bool>Whether the edges between slices are rounded.
avoid_label_overlap: Option<bool>The number of pixels the pie is pulled in by, to avoid overlapping the edge of the container.
Trait Implementations§
Source§impl Clone for PieOptions
impl Clone for PieOptions
Source§impl Debug for PieOptions
impl Debug for PieOptions
Source§impl Default for PieOptions
impl Default for PieOptions
Source§impl PartialEq for PieOptions
impl PartialEq for PieOptions
impl StructuralPartialEq for PieOptions
Auto Trait Implementations§
impl Freeze for PieOptions
impl RefUnwindSafe for PieOptions
impl Send for PieOptions
impl Sync for PieOptions
impl Unpin for PieOptions
impl UnsafeUnpin for PieOptions
impl UnwindSafe for PieOptions
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