egui_charts/studies/projection.rs
1//! Sparse study boxes with fractional logical endpoints, including future whitespace.
2
3/// A projected price band whose endpoints can fall between bar centres.
4#[derive(Clone, Debug, PartialEq)]
5pub struct StudyProjection {
6 /// Logical endpoints, in the same coordinates as the chart's time axis.
7 pub bars: std::ops::Range<f64>,
8 /// Upper price.
9 pub top: f64,
10 /// Lower price.
11 pub bottom: f64,
12 /// Output supplying visibility, stroke and colour.
13 pub plot: usize,
14}