Skip to main content

esoc_chart/axis/
scale.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! Axis scale types.
3
4/// Scale type for an axis.
5#[derive(Clone, Debug, Default)]
6pub enum Scale {
7    /// Linear scale (default).
8    #[default]
9    Linear,
10    /// Logarithmic scale (base 10).
11    Log,
12    /// Categorical scale with string labels.
13    Categorical(Vec<String>),
14}