pub struct RingChart { /* private fields */ }Implementations§
Source§impl RingChart
impl RingChart
pub fn new(slices: impl IntoIterator<Item = ChartSeries>) -> Self
pub fn id(self, id: impl Into<SharedString>) -> Self
pub fn height(self, height: impl Into<Pixels>) -> Self
pub fn show_legend(self, show: bool) -> Self
pub fn show_value_labels(self, show: bool) -> Self
pub fn show_tooltip(self, show: bool) -> Self
pub fn tooltip_hit_radius(self, radius: impl Into<Pixels>) -> Self
pub fn show_percentage_labels(self, show: bool) -> Self
pub fn value_label_content(self, content: ChartValueLabelContent) -> Self
pub fn value_label_placement(self, placement: ChartValueLabelPlacement) -> Self
pub fn percentage_decimals(self, decimals: usize) -> Self
pub fn outside_label_threshold_degrees(self, degrees: u16) -> Self
pub fn label_options(&self) -> &PieChartLabelOptions
pub fn inner_ratio(self, ratio: f32) -> Self
pub fn external_legend(self, options: RingExternalLegendOptions) -> Self
pub fn external_vertical_legend(self) -> Self
pub fn external_horizontal_legend(self) -> Self
pub fn external_legend_side(self, side: RingExternalLegendSide) -> Self
pub fn external_legend_left(self) -> Self
pub fn external_legend_right(self) -> Self
pub fn external_legend_max_items(self, max_items: usize) -> Self
pub fn external_legend_content(self, content: ChartValueLabelContent) -> Self
pub fn external_legend_percentage_decimals(self, decimals: usize) -> Self
pub fn slices(&self) -> &[ChartSeries]
Trait Implementations§
Source§impl IntoElement for RingChart
impl IntoElement for RingChart
Source§type Element = Component<RingChart>
type Element = Component<RingChart>
The specific type of element into which the implementing type is converted.
Useful for converting other types into elements automatically, like Strings
Source§fn into_element(self) -> Self::Element
fn into_element(self) -> Self::Element
Convert self into a type that implements
Element.Source§fn into_any_element(self) -> AnyElement
fn into_any_element(self) -> AnyElement
Convert self into a dynamically-typed
AnyElement.Source§impl RenderOnce for RingChart
impl RenderOnce for RingChart
Source§fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement
fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement
Render this component into an element tree. Note that this method
takes ownership of self, as compared to
Render::render() method
which takes a mutable reference.Auto Trait Implementations§
impl Freeze for RingChart
impl RefUnwindSafe for RingChart
impl Send for RingChart
impl Sync for RingChart
impl Unpin for RingChart
impl UnsafeUnpin for RingChart
impl UnwindSafe for RingChart
Blanket Implementations§
Source§impl<E> AnimationExt for Ewhere
E: IntoElement + 'static,
impl<E> AnimationExt for Ewhere
E: IntoElement + 'static,
Source§fn with_animation(
self,
id: impl Into<ElementId>,
animation: Animation,
animator: impl Fn(Self, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
fn with_animation(
self,
id: impl Into<ElementId>,
animation: Animation,
animator: impl Fn(Self, f32) -> Self + 'static,
) -> AnimationElement<Self>where
Self: Sized,
Render this component or element with an animation
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,
Source§impl<T> FluentBuilder for Twhere
T: IntoElement,
impl<T> FluentBuilder for Twhere
T: IntoElement,
Source§fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
Imperatively modify self with the given closure.
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
Conditionally modify self with the given closure.
Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
Conditionally modify self with the given closure.
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