Class ChartDrawData
- Namespace
- StockSharp.Xaml.Charting
- Assembly
- StockSharp.Xaml.Charting.dll
Chart drawing data.
public class ChartDrawData : IChartDrawData
- Inheritance
-
ChartDrawData
- Implements
- Inherited Members
- Extension Methods
Constructors
ChartDrawData()
Initializes a new instance of the ChartDrawData.
public ChartDrawData()
Methods
Add(IChartActiveOrdersElement, Order, bool?, bool, bool, bool?, decimal?, decimal?, OrderStates?)
Put the active order data.
public IChartDrawData Add(IChartActiveOrdersElement element, Order order, bool? isFrozen = null, bool autoRemoveFromChart = true, bool isHidden = false, bool? isError = null, decimal? price = null, decimal? balance = null, OrderStates? state = null)
Parameters
elementIChartActiveOrdersElementThe chart element representing active orders.
orderOrderThe order. Can be null to draw just error animation without data.
isFrozenbool?Do not allow user to edit the order from chart.
autoRemoveFromChartboolAuto remove this order from chart when its state is final (Done, Failed).
isHiddenboolWhether the order element should be hidden.
isErrorbool?Whether an order operation has failed.
pricedecimal?Order price.
balancedecimal?Balance.
stateOrderStates?Use this state to draw the order.
Returns
- IChartDrawData
IChartDrawData instance.
Add(IChartAnnotationElement, IAnnotationData)
Put the annotation data.
public IChartDrawData Add(IChartAnnotationElement element, IAnnotationData data)
Parameters
elementIChartAnnotationElementThe chart element representing an annotation.
dataIAnnotationDataAnnotation draw data.
Returns
- IChartDrawData
IChartDrawData instance.
Group(DateTimeOffset)
Initializes a new instance of the IChartDrawData.IChartDrawDataItem.
public IChartDrawData.IChartDrawDataItem Group(DateTimeOffset timeStamp)
Parameters
timeStampDateTimeOffsetThe time stamp of the new data generation.
Returns
Group(double)
Initializes a new instance of the IChartDrawData.IChartDrawDataItem.
public IChartDrawData.IChartDrawDataItem Group(double xValue)
Parameters
xValuedoubleValue of X coordinate for the data.