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.