FastOhlcRenderableSeries
Provides Fast Candlestick series rendering, however makes the assumption that all X-Data is evenly spaced. Gaps in the data are collapsed
Inherits: BaseRenderableSeries
Constructors
public FastOhlcRenderableSeries()
fastOhlcRenderableSeries = FastOhlcRenderableSeries()
Initializes a new instance of the FastCandlestickRenderableSeries class.
Properties
public double DataPointWidth { get; set; }
value = fastOhlcRenderableSeries.DataPointWidth
fastOhlcRenderableSeries.DataPointWidth = value
Gets or sets the DataPointWidth, a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy
public Color DownWickColor { get; set; }
value = fastOhlcRenderableSeries.DownWickColor
fastOhlcRenderableSeries.DownWickColor = value
Gets or sets the Color used for wicks and outlines on down-candles (close < open)
public Color UpWickColor { get; set; }
value = fastOhlcRenderableSeries.UpWickColor
fastOhlcRenderableSeries.UpWickColor = value
Gets or sets the Color used for wicks and outlines on up-candles (close > open)
Methods
protected override bool GetIsValidForDrawing()
result = fastOhlcRenderableSeries.GetIsValidForDrawing()
Gets a value indicating whether this BaseRenderableSeries is valid for drawing.
protected override void InternalDraw(IRenderContext2D renderContext, IRenderPassData renderPassData)
fastOhlcRenderableSeries.InternalDraw(renderContext, renderPassData)
Draws the series using the IRenderContext2D and the IRenderPassData passed in
- renderContext
- The render context. This is a graphics object which has methods to draw lines, quads and polygons to the screen
- renderPassData
- The render pass data. Contains a resampled IPointSeries, the IndexRange of points on the screen and the current YAxis and XAxis ICoordinateCalculator to convert data-points to screen points
protected override void OnDataSeriesDependencyPropertyChanged(IDataSeries oldDataSeries, IDataSeries newDataSeries)
fastOhlcRenderableSeries.OnDataSeriesDependencyPropertyChanged(oldDataSeries, newDataSeries)
Called when the DataSeries property changes - i.e. a new IDataSeries has been set
- oldDataSeries
- The old IDataSeries
- newDataSeries
- The new IDataSeries
protected override void OnResamplingModeChanged()
fastOhlcRenderableSeries.OnResamplingModeChanged()
Called when the resampling mode changes
Fields
public static readonly DependencyProperty DataPointWidthProperty
value = FastOhlcRenderableSeries.DataPointWidthProperty
Defines the DataPointWidth DependencyProperty
public static readonly DependencyProperty DownWickColorProperty
value = FastOhlcRenderableSeries.DownWickColorProperty
Defines the DownWickColor DependencyProperty
public static readonly DependencyProperty UpWickColorProperty
value = FastOhlcRenderableSeries.UpWickColorProperty
Defines the UpWickColor DependencyProperty