pub enum ChartType {
Show 20 variants
Bars,
Candles,
HollowCandles,
VolumeCandles,
Line,
LineWithMarkers,
StepLine,
Area,
HlcArea,
Baseline,
HighLow,
Range,
Renko,
Kagi,
LineBreak,
Heikin,
PointAndFigure,
VolumeFootprint,
TimePriceOpportunity,
SessionVolume,
}Expand description
Chart visualization types
Each variant represents a distinct way to visualize OHLCV data.
The default is Candles (Japanese candlesticks).
Variants§
Bars
Traditional OHLC bars with tick marks
Candles
Japanese candlesticks (default)
HollowCandles
Hollow when close > open, filled when close < open
VolumeCandles
Candle width proportional to volume
Line
Simple close price line
LineWithMarkers
Line with circular markers at each data point
StepLine
Stepped line (horizontal then vertical)
Area
Filled area under close price line
HlcArea
High-Low-Close area chart
Baseline
Baseline comparison chart with colored fill
HighLow
High-Low range visualization
Range
Range bars (price-based, time-independent)
Renko
Renko bricks (price movement only)
Kagi
Kagi chart (trend reversals)
LineBreak
Three line break chart
Heikin
Heikin-Ashi candles (smoothed)
PointAndFigure
Point and Figure (X and O columns)
VolumeFootprint
Volume footprint / order flow
TimePriceOpportunity
Time Price Opportunity (Market Profile)
SessionVolume
Volume aggregated by session
Implementations§
Source§impl ChartType
impl ChartType
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Technical description for tooltips
Sourcepub fn category(&self) -> ChartTypeCategory
pub fn category(&self) -> ChartTypeCategory
Category this chart type belongs to
Sourcepub fn in_category(category: ChartTypeCategory) -> Vec<ChartType>
pub fn in_category(category: ChartTypeCategory) -> Vec<ChartType>
Get all chart types in a specific category
Sourcepub fn supports_volume(&self) -> bool
pub fn supports_volume(&self) -> bool
Whether this chart type supports volume display
Sourcepub fn requires_parameters(&self) -> bool
pub fn requires_parameters(&self) -> bool
Whether this chart type requires special parameters
Sourcepub fn is_time_independent(&self) -> bool
pub fn is_time_independent(&self) -> bool
Whether this chart type is time-independent
Sourcepub fn transforms_data(&self) -> bool
pub fn transforms_data(&self) -> bool
Whether this chart type transforms the input data
Source§impl ChartType
impl ChartType
Sourcepub fn to_chart_style(&self) -> Option<ChartStyle>
pub fn to_chart_style(&self) -> Option<ChartStyle>
Convert to ChartStyle, if a mapping exists.
Domain-only types (VolumeFootprint, TimePriceOpportunity, SessionVolume, Range)
have no wire-format equivalent and return None.
Trait Implementations§
Source§impl From<ChartStyle> for ChartType
Every TV ChartStyle maps to a domain ChartType.
impl From<ChartStyle> for ChartType
Every TV ChartStyle maps to a domain ChartType.