pub struct BarChartConfig {
pub direction: BarDirection,
pub bar_width: u16,
pub bar_gap: u16,
pub group_gap: u16,
pub max_value: Option<f64>,
}Expand description
Configuration for bar chart rendering.
Fields§
§direction: BarDirectionBar direction (horizontal or vertical).
bar_width: u16Width of each bar in cells.
bar_gap: u16Gap between bars in the same group.
group_gap: u16Gap between bar groups.
max_value: Option<f64>Optional maximum value for scaling.
Implementations§
Source§impl BarChartConfig
impl BarChartConfig
Sourcepub fn direction(&mut self, direction: BarDirection) -> &mut Self
pub fn direction(&mut self, direction: BarDirection) -> &mut Self
Set the bar direction.
Trait Implementations§
Source§impl Clone for BarChartConfig
impl Clone for BarChartConfig
Source§fn clone(&self) -> BarChartConfig
fn clone(&self) -> BarChartConfig
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 moreSource§impl Debug for BarChartConfig
impl Debug for BarChartConfig
Source§impl Default for BarChartConfig
impl Default for BarChartConfig
impl Copy for BarChartConfig
Auto Trait Implementations§
impl Freeze for BarChartConfig
impl RefUnwindSafe for BarChartConfig
impl Send for BarChartConfig
impl Sync for BarChartConfig
impl Unpin for BarChartConfig
impl UnsafeUnpin for BarChartConfig
impl UnwindSafe for BarChartConfig
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