egui-charts 0.2.0

High-performance financial charting engine for egui — candlesticks, 95 drawing tools, 130+ indicators, and a full design-token theme system
Documentation
//! Legacy chart rendering components.
//!
//! Provides standalone rendering functions for individual chart elements:
//! candlesticks, OHLC bars, crosshairs, price/time labels, markers,
//! session break lines, tooltips, and volume bars.
//!
//! These functions are called directly by the chart widget and the modern
//! rendering layer in [`rendering`](super::rendering).

mod bar;
mod candle;
mod context;
mod crosshair;
mod indicator;
mod labels;
mod markers;
mod session_breaks;
mod tooltip;
mod volume;

pub use bar::render_ohlc_bar;
pub use candle::render_candle;
pub use context::{BarRenderParams, ChartMapping, LinearPriceMap, RenderContext, StyleColors};

/// Backwards-compatible name for the render-local linear price mapper.
///
/// The render path uses [`LinearPriceMap`]; this alias is retained so the chart
/// widget can keep referring to it by the historical name. The price-scale
/// *engine* (logarithmic / percentage / indexed modes) is the unrelated
/// [`crate::scales::PriceScale`]; the two are intentionally different types.
pub use context::LinearPriceMap as PriceScale;
pub use crosshair::render_crosshair_full;
pub use indicator::IndicatorRenderer;
pub use labels::{render_legend, render_ohlc_info, render_price_labels, render_time_labels};
pub use markers::render_markers;
pub use session_breaks::{
    SessionBackgroundRenderer, SessionBreakRenderConfig, SessionBreakRenderer,
    provider_for_timeframe,
};
pub use tooltip::render_tooltip_with_options;
pub use volume::render_volume_bar;