egui_charts/studies/format.rs
1//! Study scale placement.
2
3/// Value scale in the pane selected by [`super::Indicator::is_overlay`].
4#[derive(Clone, Copy, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
5#[non_exhaustive]
6pub enum StudyScale {
7 /// Share the pane's main price scale and participate in its auto-range.
8 Main,
9 /// Share a named bar-series scale. Right and left share with other members assigned
10 /// there; `Separate(id)` creates or joins an additional scale. Assignments are scoped
11 /// to the study's pane. `Overlay(id)` shares a scale without an axis.
12 Shared(crate::model::SeriesScale),
13 /// Fit this study's visible outputs independently and show its own axis.
14 Independent,
15 /// Fit independently without an axis or value tags.
16 None,
17}