ChartDrawable

StockSharp.Xaml.Charting.Maui

maUI可以画出烛台图

实现: IDrawable

属性

AdditionalYAxes
public List<ChartAxis> AdditionalYAxes { get; }
value = chartDrawable.AdditionalYAxes

得到额外的Y轴.

Annotations
public List<IAnnotation> Annotations { get; }
value = chartDrawable.Annotations

获得注释集.

Areas
public List<ChartArea> Areas { get; }
value = chartDrawable.Areas

获取多区域渲染的图表区域集。

BackgroundColor
public ChartColor BackgroundColor { get; set; }
value = chartDrawable.BackgroundColor
chartDrawable.BackgroundColor = value

后背颜色.

BoxVolumeProfiles
public List<BoxVolumeProfile> BoxVolumeProfiles { get; }
value = chartDrawable.BoxVolumeProfiles

获取或设置盒卷配置 。

Candles
public CandleDataSeries Candles { get; set; }
value = chartDrawable.Candles
chartDrawable.Candles = value

所要显示的蜡烛数据.

ClusterProfiles
public List<ClusterProfile> ClusterProfiles { get; }
value = chartDrawable.ClusterProfiles

获取或设置集群配置 。

CrosshairPosition
public ChartPoint? CrosshairPosition { get; set; }
value = chartDrawable.CrosshairPosition
chartDrawable.CrosshairPosition = value

十字架位置( 未显示则无效) 。

DrawStyle
public ChartDrawStyle DrawStyle { get; set; }
value = chartDrawable.DrawStyle
chartDrawable.DrawStyle = value

图表绘制风格。

Indicators
public List<ValueTuple<IReadOnlyList<decimal?>, ChartColor, string>> Indicators { get; }
value = chartDrawable.Indicators

指标数据序列(可计值).

Legend
public ChartLegend Legend { get; }
value = chartDrawable.Legend

获得传说配置.

Modifiers
public ModifierGroup Modifiers { get; set; }
value = chartDrawable.Modifiers
chartDrawable.Modifiers = value

获取或设置用于绘制修改器视觉的修饰器组.

OscillatorPanes
public List<OscillatorPane> OscillatorPanes { get; }
value = chartDrawable.OscillatorPanes

振荡器子平面(RSI, MACD,...) 堆放在价格图下, 每个平面都有自己的垂直平面。 默认情况下空出 — 当空出图表时, 使用价格( 和可选量) 区域的全部高度 。

Padding
public double Padding { get; set; }
value = chartDrawable.Padding
chartDrawable.Padding = value

绕着图表区域打

PnFData
public PnFChartData PnFData { get; set; }
value = chartDrawable.PnFData
chartDrawable.PnFData = value

获取或设置点和图数据。

ShowCrosshair
public bool ShowCrosshair { get; set; }
value = chartDrawable.ShowCrosshair
chartDrawable.ShowCrosshair = value

是否显示十字架 。

ShowLegend
public bool ShowLegend { get; set; }
value = chartDrawable.ShowLegend
chartDrawable.ShowLegend = value

是否显示传说 。

ShowVolume
public bool ShowVolume { get; set; }
value = chartDrawable.ShowVolume
chartDrawable.ShowVolume = value

是否显示音量子平面 。

StartIndex
public int StartIndex { get; set; }
value = chartDrawable.StartIndex
chartDrawable.StartIndex = value

可见蜡烛的起步索引.

Theme
public ChartTheme Theme { get; set; }
value = chartDrawable.Theme
chartDrawable.Theme = value

获取或设置图表主题。

VisibleCandleCount
public int VisibleCandleCount { get; set; }
value = chartDrawable.VisibleCandleCount
chartDrawable.VisibleCandleCount = value

观道所见之烛数.

VolumeHeightRatio
public double VolumeHeightRatio { get; set; }
value = chartDrawable.VolumeHeightRatio
chartDrawable.VolumeHeightRatio = value

音量子平分高度比 (0.0 - 1.0).

XAxisHeight
public double XAxisHeight { get; set; }
value = chartDrawable.XAxisHeight
chartDrawable.XAxisHeight = value

X轴区域以像素表示的高度.

YAxisWidth
public double YAxisWidth { get; set; }
value = chartDrawable.YAxisWidth
chartDrawable.YAxisWidth = value

Y轴区域以像素为单位的宽度.

方法

ScreenToData
public ValueTuple<double, decimal> ScreenToData(ChartPoint screenPoint)
result = chartDrawable.ScreenToData(screenPoint)

将屏幕像素点(以图表-局部坐标表示)转换为数据坐标:分数蜡烛指数和价格。当点在价格区之外或尚未绘制出框架时,返回(NaN, 0)。使用实际蜡烛区,所以当振荡子平面缩小时,绘图仍然正确。