pub struct BarSeries {
pub x: Vec<f64>,
pub heights: Vec<f64>,
pub label: Option<String>,
pub color: Option<Color>,
pub bar_width: f64,
pub horizontal: bool,
}Expand description
A bar chart series.
Fields§
§x: Vec<f64>X positions (bar centers).
heights: Vec<f64>Bar heights (or lengths for horizontal).
label: Option<String>Optional series label.
color: Option<Color>Override color.
bar_width: f64Bar width in data units.
horizontal: boolWhether to draw horizontal bars.
Implementations§
Trait Implementations§
Source§impl SeriesRenderer for BarSeries
impl SeriesRenderer for BarSeries
Source§fn data_bounds(&self) -> DataBounds
fn data_bounds(&self) -> DataBounds
Compute the data bounds for this series.
Auto Trait Implementations§
impl Freeze for BarSeries
impl RefUnwindSafe for BarSeries
impl Send for BarSeries
impl Sync for BarSeries
impl Unpin for BarSeries
impl UnsafeUnpin for BarSeries
impl UnwindSafe for BarSeries
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