pub struct BarOptions {
pub bar_width: Option<f64>,
pub bar_max_width: Option<f64>,
pub bar_min_width: Option<f64>,
pub bar_gap: Option<String>,
pub bar_category_gap: Option<String>,
pub horizontal: bool,
pub show_background: bool,
pub background_style: Option<ItemStyleOption>,
pub bar_min_radius: Option<f64>,
pub stack: Option<String>,
}Expand description
The options specific to a bar series.
Fields§
§bar_width: Option<f64>The width of the bars, in pixels.
bar_max_width: Option<f64>The maximum width of the bars, in pixels.
bar_min_width: Option<f64>The minimum width of the bars, in pixels.
bar_gap: Option<String>The width of the gap between bars, as a fraction of the bar width.
bar_category_gap: Option<String>The width of the gap between bar groups, as a fraction of the bar width.
horizontal: boolWhether the bars are drawn horizontally.
show_background: boolThe colour of the background behind the bars.
background_style: Option<ItemStyleOption>The fill of the background behind the bars.
bar_min_radius: Option<f64>The border radius of the bars.
stack: Option<String>Whether the bars are stacked.
Trait Implementations§
Source§impl Clone for BarOptions
impl Clone for BarOptions
Source§impl Debug for BarOptions
impl Debug for BarOptions
Source§impl Default for BarOptions
impl Default for BarOptions
Source§impl PartialEq for BarOptions
impl PartialEq for BarOptions
impl StructuralPartialEq for BarOptions
Auto Trait Implementations§
impl Freeze for BarOptions
impl RefUnwindSafe for BarOptions
impl Send for BarOptions
impl Sync for BarOptions
impl Unpin for BarOptions
impl UnsafeUnpin for BarOptions
impl UnwindSafe for BarOptions
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