pub struct BarChart { /* private fields */ }Implementations§
Source§impl BarChart
impl BarChart
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 bar_gap_ratio(self, ratio: f32) -> Self
pub fn max_axis_labels(self, max_labels: usize) -> Self
pub fn max_value_labels(self, max_labels: usize) -> Self
pub fn standalone(self) -> Self
pub fn bar_radius(self, radius: impl Into<Pixels>) -> Self
pub fn bar_width(self, width: impl Into<Pixels>) -> Self
pub fn bar_gap(self, gap: impl Into<Pixels>) -> Self
pub fn value_color_ranges( self, ranges: impl IntoIterator<Item = BarChartValueColorRange>, ) -> Self
pub fn value_fill_ranges( self, ranges: impl IntoIterator<Item = BarChartValueFillRange>, ) -> Self
pub fn bar_fills( self, fills: impl IntoIterator<Item = impl Into<BarChartFill>>, ) -> Self
pub fn bar_vertical_gradient(self, from: Hsla, to: Hsla) -> Self
pub fn grouped(self) -> Self
pub fn stacked(self) -> Self
pub fn mode(self, mode: BarChartMode) -> Self
pub fn series(&self) -> &[ChartSeries]
pub fn options(&self) -> &ChartOptions
pub fn bar_mode(&self) -> BarChartMode
pub fn is_standalone(&self) -> bool
pub fn bar_radius_value(&self) -> Pixels
pub fn value_fill_ranges_config(&self) -> &[BarChartValueFillRange]
pub fn bar_fills_config(&self) -> &[BarChartFill]
Trait Implementations§
Source§impl IntoElement for BarChart
impl IntoElement for BarChart
Source§type Element = Component<BarChart>
type Element = Component<BarChart>
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 BarChart
impl RenderOnce for BarChart
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 BarChart
impl RefUnwindSafe for BarChart
impl Send for BarChart
impl Sync for BarChart
impl Unpin for BarChart
impl UnsafeUnpin for BarChart
impl UnwindSafe for BarChart
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