ChartView
MAUI candlestick chart view with touch gestures. Implements IChart for StockSharp compatibility.
Наследует: GraphicsView
Реализует: IChart, IChartBuilder, IThemeableChart, IPersistable, IChartModifierSurface
Свойства
Annotations : List<IAnnotation>
Gets the annotations collection.
Candles : CandleDataSeries
The candle data to display.
ChartThemeModel : ChartTheme
Gets or sets the chart theme.
DrawStyle : ChartDrawStyle
The chart draw style.
Indicators : List<ValueTuple<IReadOnlyList<decimal?>, ChartColor, string>>
Indicator series to display.
Modifiers : ModifierGroup
Gets the modifier group for controlling chart interactions.
ShowCrosshair : bool
Whether to show the crosshair.
ShowLegendBool : bool
Whether to show the legend (local property).
ShowVolume : bool
Whether to show the volume subplot.
StartIndex : int
The starting index of visible candles.
VisibleCandleCount : int
The number of candles visible in the viewport.
Методы
AddAnnotation(IAnnotation)
Adds an annotation.
AddElementToArea(ChartArea, IChartElement)
Internal method to add element to internal model area.
AddIndicator(IReadOnlyList<decimal?>, ChartColor, string)
Adds an indicator series.
AddOscillator(OscillatorPane)
Adds an oscillator sub-pane (RSI, MACD, …) below the price chart.
ClearAnnotations()
Clears all annotations.
ClearIndicators()
Clears all indicators.
ClearOscillators()
Clears all oscillator sub-panes.
CreateArea(string, double, bool) : ChartArea
Creates a new chart area.
Ecng#Serialization#IPersistable#Load(SettingsStorage)
Ecng#Serialization#IPersistable#Save(SettingsStorage)
FitAll()
Fits all candles in view.
ScreenToData(ChartPoint) : ValueTuple<double, decimal>
Maps a chart-local screen point to data coordinates (fractional candle index and price), or (NaN, 0) when the point is outside the price area. Used by drawing tools.
ScrollToEnd()
Scrolls to the end of the data (most recent candles).
ScrollToStart()
Scrolls to the beginning of the data (oldest candles).
SetTheme(ChartThemeType)
Sets the chart theme by type.
ZoomIn()
Zooms in (shows fewer candles).
ZoomOut()
Zooms out (shows more candles).
События
RangeChanged : EventHandler<ChartRangeChangedEventArgs>
Raised when the visible range changes.