pub struct AxisOptions {Show 17 fields
pub scale: AxisScale,
pub min: f64,
pub max: f64,
pub major_spacing: f64,
pub minor_count: usize,
pub inverted: bool,
pub label_style: LabelStyle,
pub tick: TickVisibility,
pub title_option: AxisTitleOptions,
pub out_margin: f32,
pub line_offset: f32,
pub line_visible: bool,
pub line_color: Color,
pub line_width: f32,
pub line_style: LineStylePreset,
pub major_tick_length: f32,
pub minor_tick_length: f32,
}Fields§
§scale: AxisScale§min: f64§max: f64§major_spacing: f64§minor_count: usize§inverted: bool§label_style: LabelStyle§tick: TickVisibility§title_option: AxisTitleOptions§out_margin: f32Outer margin past the axis title band. Always counted, regardless of title visibility.
line_offset: f32Detached-axis offset: shifts the axis line + ticks + tick labels perpendicular to the axis (Δx for y-axes, Δy for x-axes) away from the data-area edge they normally sit on. Margin-noncontributing visual offset — the data area, grid, and data transform are unaffected, so tick positions along the axis stay aligned with the data.
line_visible: bool§line_color: Color§line_width: f32§line_style: LineStylePreset§major_tick_length: f32§minor_tick_length: f32Implementations§
Source§impl AxisOptions
impl AxisOptions
pub fn auto_significant_digits(&mut self)
Trait Implementations§
Source§impl Clone for AxisOptions
impl Clone for AxisOptions
Source§impl Debug for AxisOptions
impl Debug for AxisOptions
Source§impl<'de> Deserialize<'de> for AxisOptions
impl<'de> Deserialize<'de> for AxisOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AxisOptions
impl PartialEq for AxisOptions
Source§impl Serialize for AxisOptions
impl Serialize for AxisOptions
impl StructuralPartialEq for AxisOptions
Auto Trait Implementations§
impl Freeze for AxisOptions
impl RefUnwindSafe for AxisOptions
impl Send for AxisOptions
impl Sync for AxisOptions
impl Unpin for AxisOptions
impl UnsafeUnpin for AxisOptions
impl UnwindSafe for AxisOptions
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