pub struct AreaChart { /* private fields */ }Implementations§
Source§impl AreaChart
impl AreaChart
pub fn new(series: 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_grid(self, show: bool) -> Self
pub fn show_axis(self, show: bool) -> Self
pub fn show_legend(self, show: bool) -> Self
pub fn y_domain(self, min: f64, max: f64) -> Self
pub fn y_format(self, formatter: fn(f64) -> SharedString) -> 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 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 smooth(self, enabled: bool) -> Self
pub fn stroke_width(self, width: impl Into<Pixels>) -> Self
pub fn max_render_points(self, max_points: usize) -> Self
pub fn max_axis_labels(self, max_labels: usize) -> Self
pub fn max_value_labels(self, max_labels: usize) -> Self
pub fn disable_downsampling(self) -> Self
pub fn overlay(self) -> Self
pub fn stacked(self) -> Self
pub fn mode(self, mode: AreaChartMode) -> Self
pub fn line_stroke(self, enabled: bool) -> Self
pub fn series(&self) -> &[ChartSeries]
pub fn options(&self) -> &ChartOptions
pub fn area_mode(&self) -> AreaChartMode
Trait Implementations§
Source§impl IntoElement for AreaChart
impl IntoElement for AreaChart
Source§type Element = Component<AreaChart>
type Element = Component<AreaChart>
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 AreaChart
impl RenderOnce for AreaChart
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 AreaChart
impl RefUnwindSafe for AreaChart
impl Send for AreaChart
impl Sync for AreaChart
impl Unpin for AreaChart
impl UnsafeUnpin for AreaChart
impl UnwindSafe for AreaChart
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