egui_charts/model/series_scale.rs
1//! Price scale membership for series in one chart pane.
2
3/// Series with the same assignment share a range and scale options. Relative modes
4/// retain a separate first-visible-close reference for each series.
5#[derive(
6 Debug, Clone, Copy, PartialEq, Eq, Hash, Default, serde::Serialize, serde::Deserialize,
7)]
8pub enum SeriesScale {
9 /// The pane's right axis.
10 #[default]
11 Right,
12 /// The pane's left axis.
13 Left,
14 /// An independent scale without axis labels, identified by the host.
15 Overlay(u64),
16 /// An additional labelled scale, identified by the host.
17 Separate(u64),
18}