pub struct Axis {
pub label: Option<String>,
pub min: Option<f64>,
pub max: Option<f64>,
pub grid_lines: usize,
pub show_grid: bool,
pub color: Color,
pub grid_color: Color,
}Expand description
Axis configuration.
Fields§
§label: Option<String>Axis label
min: Option<f64>Minimum value (auto if None)
max: Option<f64>Maximum value (auto if None)
grid_lines: usizeNumber of grid lines
show_grid: boolShow grid
color: ColorAxis color
grid_color: ColorGrid color
Implementations§
Source§impl Axis
impl Axis
Sourcepub fn grid_lines(self, count: usize) -> Self
pub fn grid_lines(self, count: usize) -> Self
Set number of grid lines.
Sourcepub const fn grid_color(self, color: Color) -> Self
pub const fn grid_color(self, color: Color) -> Self
Set grid color.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Axis
impl<'de> Deserialize<'de> for Axis
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
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnwindSafe for Axis
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