EquityCurveChart

StockSharp.Xaml.Charting

The graphical component to display the equity curve.

继承自: UserControl

实现: IThemeableChart, IPersistable, IComponentConnector

构造函数

EquityCurveChart()

Initializes a new instance of the EquityCurveChart.

属性

ChartTheme : string

The name of the graphic theme.

NoGapMode : bool

To remove gaps (weekends, holidays) on the chart. When the mode is enabled and multiple curves are used then joint scaling will be lost. Enabled by default.

方法

Clear()

To remove yield curves from the chart.

CreateCurve(string, Color, DrawStyles, Guid) : IChartBandElement

To create new curve to draw the yield.

title
The line title.
color
The line color.
style
The line drawing style. The default is Line.
id
Unique ID.

返回值: Chart element representing a line.

CreateCurve(string, Color, Color, DrawStyles, Guid) : IChartBandElement

To create new curve to draw the yield.

title
The line title.
color
The line color.
secondColor
The additional line color. It is used to draw Area.
style
The line drawing style. The default is Line.
id
Unique ID.

返回值: Chart element representing a line.

CreateData() : IChartDrawData

Create IChartDrawData instance.

返回值: IChartDrawData instance.

Draw(IChartDrawData)

To process the new data.

data
New data.

返回值: if the data was successfully drawn, otherwise, returns .

InitializeComponent()

InitializeComponent

Load(SettingsStorage)

Load settings.

storage
Settings storage.
RemoveCurve(IChartBandElement)

To remove the yield curve from the chart.

elem
The chart element obtained from the method Guid).
Reset()

To reset all chart elements.

Reset(IEnumerable<ICollection<LineData<DateTime>>>)

To reset specified chart elements.

items
Elements to reset.
Reset(IEnumerable<IChartBandElement>)

To reset specified chart elements.

elements
Elements to reset.
Save(SettingsStorage)

Save settings.

storage
Settings storage.