pub struct HorizontalBarView { /* private fields */ }
Expand description
HorizontalBarView represents a chart view with horizontal bars.
Implementations§
Source§impl HorizontalBarView
impl HorizontalBarView
Sourcepub fn new(x_scale: LinearScale, y_scale: BandScale) -> Self
pub fn new(x_scale: LinearScale, y_scale: BandScale) -> Self
Create a new HorizontalBarView.
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 HorizontalBarView
impl Clone for HorizontalBarView
Source§fn clone(&self) -> HorizontalBarView
fn clone(&self) -> HorizontalBarView
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 HorizontalBarView
impl RefUnwindSafe for HorizontalBarView
impl Send for HorizontalBarView
impl Sync for HorizontalBarView
impl Unpin for HorizontalBarView
impl UnwindSafe for HorizontalBarView
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