Skip to main content

egui_charts/model/bar/
mod.rs

1//! OHLCV bars and a series data container.
2//!
3//! Use [`Bar`] for a timestamped price and volume observation, and [`BarData`] to
4//! hold a series for charting or analysis. Bars can also represent a single value
5//! or a whitespace slot on the time axis.
6
7mod bar;
8mod bar_data;
9mod io;
10mod levels;
11mod patterns;
12
13// Re-export main types
14pub use bar::{Bar, BarColors};
15pub(crate) use bar::{last_with_value, percent_change};
16pub use bar_data::BarData;
17pub(crate) use levels::{bar_level_keys, level_grid, level_key};
18pub use patterns::CandlePatterns;
19
20#[cfg(feature = "widget")]
21mod time;
22#[cfg(feature = "widget")]
23pub(crate) use time::{
24    index_at, index_at_with_timeframe, numeric_positions, time_at, time_at_with_timeframe,
25};