pub struct Axis { /* private fields */ }
Expand description
Axis in cartesian coordinate.
Implementations§
Source§impl Axis
impl Axis
pub fn new() -> Self
pub fn type_<T: Into<AxisType>>(self, type_: T) -> Self
pub fn id<S: Into<String>>(self, id: S) -> Self
pub fn show(self, show: bool) -> Self
pub fn grid_index<F: Into<i64>>(self, grid_index: F) -> Self
pub fn offset<F: Into<i64>>(self, offset: F) -> Self
pub fn name<S: Into<String>>(self, name: S) -> Self
pub fn name_location<E: Into<NameLocation>>(self, name_location: E) -> Self
pub fn name_text_style<T: Into<TextStyle>>(self, name_text_style: T) -> Self
pub fn name_gap<F: Into<i64>>(self, name_gap: F) -> Self
pub fn name_rotation<F: Into<i64>>(self, name_rotation: F) -> Self
pub fn inverse(self, inverse: bool) -> Self
pub fn align_ticks(self, align_ticks: bool) -> Self
pub fn boundary_gap<B: Into<BoundaryGap>>(self, boundary_gap: B) -> Self
pub fn position<C: Into<CompositeValue>>(self, position: C) -> Self
pub fn min<C: Into<CompositeValue>>(self, min: C) -> Self
pub fn max<C: Into<CompositeValue>>(self, max: C) -> Self
pub fn scale(self, scale: bool) -> Self
pub fn split_number<F: Into<i64>>(self, split_number: F) -> Self
pub fn min_interval<F: Into<i64>>(self, min_interval: F) -> Self
pub fn max_interval<F: Into<i64>>(self, max_interval: F) -> Self
pub fn interval<F: Into<i64>>(self, interval: F) -> Self
pub fn log_base<F: Into<i64>>(self, log_base: F) -> Self
pub fn axis_label<L: Into<AxisLabel>>(self, axis_label: L) -> Self
pub fn axis_tick<T: Into<AxisTick>>(self, axis_tick: T) -> Self
pub fn axis_line<L: Into<AxisLine>>(self, axis_line: L) -> Self
pub fn axis_pointer<P: Into<AxisPointer>>(self, axis_pointer: P) -> Self
pub fn split_area<A: Into<SplitArea>>(self, split_area: A) -> Self
pub fn split_line<A: Into<SplitLine>>(self, split_line: A) -> Self
pub fn data<S: Into<String>>(self, data: Vec<S>) -> Self
Trait Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more