pub struct VerticalBarView { /* private fields */ }
Expand description
VerticalBarView represents a chart view with vertical bars.
Implementations§
Source§impl VerticalBarView
impl VerticalBarView
Sourcepub fn new(x_scale: BandScale, y_scale: LinearScale) -> Self
pub fn new(x_scale: BandScale, y_scale: LinearScale) -> Self
Create a new VerticalBarView.
Sourcepub fn set_bar_label_visible(self, bar_label_visible: bool) -> Self
pub fn set_bar_label_visible(self, bar_label_visible: bool) -> Self
Configure label visibility for bars.
Sourcepub fn set_bar_label_position(
self,
bar_label_position: BarLabelPosition,
) -> Self
pub fn set_bar_label_position( self, bar_label_position: BarLabelPosition, ) -> Self
Configure label position for bars.
Sourcepub fn set_data(self, bars_values: &[BarsValues]) -> Result<Self, Error>
pub fn set_data(self, bars_values: &[BarsValues]) -> Result<Self, Error>
Set values for bars.
Trait Implementations§
Source§impl Clone for VerticalBarView
impl Clone for VerticalBarView
Source§fn clone(&self) -> VerticalBarView
fn clone(&self) -> VerticalBarView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for VerticalBarView
impl RefUnwindSafe for VerticalBarView
impl Send for VerticalBarView
impl Sync for VerticalBarView
impl Unpin for VerticalBarView
impl UnwindSafe for VerticalBarView
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