pub struct Axis { /* private fields */ }Implementations§
Source§impl Axis
impl Axis
pub fn visible(self, value: bool) -> Self
Sourcepub fn category_array(self, value: Vec<impl Into<NumOrString> + Clone>) -> Self
pub fn category_array(self, value: Vec<impl Into<NumOrString> + Clone>) -> Self
Sets the order in which categories on this axis appear. Only has an
effect if category_order is set to CategoryOrder::Array.
Used with category_order.
Sourcepub fn category_order(self, value: CategoryOrder) -> Self
pub fn category_order(self, value: CategoryOrder) -> Self
Specifies the ordering logic for the case of categorical variables.
By default, plotly uses CategoryOrder::Trace, which specifies
the order that is present in the data supplied. Set category_order to
CategoryOrder::CategoryAscending or
CategoryOrder::CategoryDescending if order should be determined
by the alphanumerical order of the category names. Set category_order
to CategoryOrder::Array to derive the ordering from the attribute
category_array. If a category is not found in the category_array
array, the sorting behavior for that attribute will be identical to the
CategoryOrder::Trace mode. The unspecified categories will follow
the categories in category_array. Set category_order to
CategoryOrder::TotalAscending or
CategoryOrder::TotalDescending if order should be determined by the
numerical order of the values. Similarly, the order can be determined
by the min, max, sum, mean, geometric mean or median of all the values.
pub fn color(self, value: impl Color) -> Self
pub fn title(self, value: impl Into<Title>) -> Self
pub fn auto_range(self, value: bool) -> Self
pub fn range_breaks(self, value: Vec<RangeBreak>) -> Self
pub fn range_mode(self, value: RangeMode) -> Self
pub fn fixed_range(self, value: bool) -> Self
pub fn constrain(self, value: AxisConstrain) -> Self
pub fn constrain_toward(self, value: ConstrainDirection) -> Self
pub fn tick_mode(self, value: TickMode) -> Self
pub fn n_ticks(self, value: usize) -> Self
pub fn scale_anchor(self, value: impl AsRef<str>) -> Self
pub fn scale_ratio(self, value: f64) -> Self
pub fn tick0(self, value: f64) -> Self
pub fn dtick(self, value: f64) -> Self
pub fn tick_values(self, value: Vec<f64>) -> Self
pub fn tick_text(self, value: Vec<impl AsRef<str>>) -> Self
pub fn ticks(self, value: TicksDirection) -> Self
pub fn ticks_on(self, value: TicksPosition) -> Self
pub fn mirror(self, value: bool) -> Self
pub fn tick_length(self, value: usize) -> Self
pub fn tick_width(self, value: usize) -> Self
pub fn tick_color(self, value: impl Color) -> Self
pub fn show_tick_labels(self, value: bool) -> Self
pub fn auto_margin(self, value: bool) -> Self
pub fn show_spikes(self, value: bool) -> Self
pub fn spike_color(self, value: impl Color) -> Self
pub fn spike_thickness(self, value: usize) -> Self
pub fn spike_dash(self, value: DashType) -> Self
pub fn spike_mode(self, value: SpikeMode) -> Self
pub fn spike_snap(self, value: SpikeSnap) -> Self
pub fn tick_font(self, value: Font) -> Self
pub fn tick_angle(self, value: f64) -> Self
pub fn tick_prefix(self, value: impl AsRef<str>) -> Self
pub fn show_tick_prefix(self, value: ArrayShow) -> Self
pub fn tick_suffix(self, value: impl AsRef<str>) -> Self
pub fn show_tick_suffix(self, value: ArrayShow) -> Self
pub fn show_exponent(self, value: ArrayShow) -> Self
pub fn exponent_format(self, value: ExponentFormat) -> Self
pub fn separate_thousands(self, value: bool) -> Self
pub fn tick_format(self, value: impl AsRef<str>) -> Self
pub fn tick_format_stops(self, value: Vec<TickFormatStop>) -> Self
pub fn hover_format(self, value: impl AsRef<str>) -> Self
pub fn show_line(self, value: bool) -> Self
pub fn line_color(self, value: impl Color) -> Self
pub fn line_width(self, value: usize) -> Self
pub fn show_grid(self, value: bool) -> Self
pub fn grid_color(self, value: impl Color) -> Self
pub fn grid_width(self, value: usize) -> Self
pub fn zero_line(self, value: bool) -> Self
pub fn zero_line_color(self, value: impl Color) -> Self
pub fn zero_line_width(self, value: usize) -> Self
pub fn show_dividers(self, value: bool) -> Self
pub fn divider_color(self, value: impl Color) -> Self
pub fn divider_width(self, value: usize) -> Self
pub fn anchor(self, value: impl AsRef<str>) -> Self
pub fn side(self, value: AxisSide) -> Self
pub fn overlaying(self, value: impl AsRef<str>) -> Self
pub fn position(self, value: f64) -> Self
pub fn range_slider(self, value: RangeSlider) -> Self
pub fn range_selector(self, value: RangeSelector) -> Self
pub fn calendar(self, value: Calendar) -> 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)