ChartDrawable
MAUI drawable that renders a candlestick chart.
Implements: IDrawable
Properties
AdditionalYAxes : List<ChartAxis>
Gets the additional Y axes.
Annotations : List<IAnnotation>
Gets the annotations collection.
BackgroundColor : ChartColor
Background color.
BoxVolumeProfiles : List<BoxVolumeProfile>
Gets or sets the box volume profiles.
Candles : CandleDataSeries
The candle data to display.
ClusterProfiles : List<ClusterProfile>
Gets or sets the cluster profiles.
CrosshairPosition : ChartPoint?
Crosshair position (null if not shown).
DrawStyle : ChartDrawStyle
The chart draw style.
Indicators : List<ValueTuple<IReadOnlyList<decimal?>, ChartColor, string>>
Indicator data series (nullable values).
Legend : ChartLegend
Gets the legend configuration.
Modifiers : ModifierGroup
Gets or sets the modifier group for drawing modifier visuals.
OscillatorPanes : List<OscillatorPane>
Oscillator sub-panes (RSI, MACD, …) stacked below the price chart, each with its own vertical scale. Empty by default — when empty the chart renders exactly as before, using the full height for the price (and optional volume) area.
PnFData : PnFChartData
Gets or sets the Point and Figure data.
ShowCrosshair : bool
Whether to show the crosshair.
ShowLegend : bool
Whether to show the legend.
ShowVolume : bool
Whether to show the volume subplot.
StartIndex : int
The starting index of visible candles.
Theme : ChartTheme
Gets or sets the chart theme.
VisibleCandleCount : int
The number of candles visible in the viewport.
VolumeHeightRatio : double
Height ratio of volume subplot (0.0 - 1.0).
XAxisHeight : double
Height of the X axis area in pixels.
YAxisWidth : double
Width of the Y axis area in pixels.
Methods
ScreenToData(ChartPoint) : ValueTuple<double, decimal>
Converts a screen pixel point (in chart-local coordinates) to data coordinates: a fractional candle index and a price. Returns (NaN, 0) when the point is outside the price area or no frame has been drawn yet. Uses the actual candle area, so the mapping stays correct when oscillator sub-panes shrink it.