Class EquityCurveChart
- Namespace
- StockSharp.Xaml.Charting
- Assembly
- StockSharp.Xaml.Charting.dll
The graphical component to display the equity curve.
public class EquityCurveChart : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IThemeableChart, IPersistable, IComponentConnector
- Inheritance
-
EquityCurveChart
- Implements
- Inherited Members
- Extension Methods
Constructors
EquityCurveChart()
Initializes a new instance of the EquityCurveChart.
public EquityCurveChart()
Properties
ChartTheme
The name of the graphic theme.
public string ChartTheme { get; set; }
Property Value
Elements
Elements.
public IEnumerable<IChartBandElement> Elements { get; }
Property Value
NoGapMode
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.
public bool NoGapMode { get; set; }
Property Value
Methods
Clear()
To remove yield curves from the chart.
public void Clear()
CreateCurve(string, Color, DrawStyles, Guid)
To create new curve to draw the yield.
public IChartBandElement CreateCurve(string title, Color color, DrawStyles style, Guid id = default)
Parameters
titlestringThe line title.
colorColorThe line color.
styleDrawStylesThe line drawing style. The default is Line.
idGuidUnique ID.
Returns
- IChartBandElement
Chart element representing a line.
CreateCurve(string, Color, Color, DrawStyles, Guid)
To create new curve to draw the yield.
public IChartBandElement CreateCurve(string title, Color color, Color secondColor, DrawStyles style, Guid id = default)
Parameters
titlestringThe line title.
colorColorThe line color.
secondColorColorThe additional line color. It is used to draw Area.
styleDrawStylesThe line drawing style. The default is Line.
idGuidUnique ID.
Returns
- IChartBandElement
Chart element representing a line.
CreateData()
Create IChartDrawData instance.
public IChartDrawData CreateData()
Returns
- IChartDrawData
IChartDrawData instance.
Draw(IChartDrawData)
To process the new data.
public void Draw(IChartDrawData data)
Parameters
dataIChartDrawDataNew data.
InitializeComponent()
InitializeComponent
public void InitializeComponent()
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
RemoveCurve(IChartBandElement)
To remove the yield curve from the chart.
public void RemoveCurve(IChartBandElement elem)
Parameters
elemIChartBandElementThe chart element obtained from the method CreateCurve(string, Color, DrawStyles, Guid).
Reset()
To reset all chart elements.
public void Reset()
Reset(IEnumerable<IChartBandElement>)
To reset specified chart elements.
public void Reset(IEnumerable<IChartBandElement> elements)
Parameters
elementsIEnumerable<IChartBandElement>Elements to reset.
Reset(IEnumerable<ICollection<LineData<DateTime>>>)
To reset specified chart elements.
public void Reset(IEnumerable<ICollection<LineData<DateTime>>> items)
Parameters
itemsIEnumerable<ICollection<LineData<DateTime>>>Elements to reset.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.