Skip to main content

euv_chart/model/
enum.rs

1/// The kind of a coordinate scale.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum ScaleKind {
4    /// A linear scale: equal steps in the data are equal steps on screen.
5    #[default]
6    Linear,
7    /// A logarithmic scale.
8    Log,
9    /// A time scale.
10    Time,
11    /// An ordinal scale: the data are discrete categories.
12    Category,
13}
14
15/// How an axis is positioned relative to its grid.
16#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
17pub enum AxisSide {
18    /// The axis sits on the bottom edge of the grid.
19    #[default]
20    Bottom,
21    /// The axis sits on the top edge of the grid.
22    Top,
23    /// The axis sits on the left edge of the grid.
24    Left,
25    /// The axis sits on the right edge of the grid.
26    Right,
27}