PaletteProviderBase

StockSharp.Xaml.Charting.Visuals.RenderableSeries

Base class for custom Palette Providers, which may be used to override bar, candle or OHLC colors for individual points during rendering

Implements: IPaletteProvider

Methods

GetColor
public virtual Color? GetColor(IRenderableSeries series, double xValue, double yValue)
result = paletteProviderBase.GetColor(series, xValue, yValue)

When called for an X,Y point, override the color on the attached BaseRenderableSeries. Return null to keep the default series color Return a value to override the series color

series
The source IRenderableSeries
xValue
The X-value of the data-point
yValue
The Y-value of the data-point

Returns: The overriden color. Return null to keep the default

OverrideColor
public virtual Color? OverrideColor(IRenderableSeries series, double xValue, double openValue, double highValue, double lowValue, double closeValue)
result = paletteProviderBase.OverrideColor(series, xValue, openValue, highValue, lowValue, closeValue)

When called for an OHLC point, override the color on the attached BaseRenderableSeries. Return null to keep the default series color Return a value to override the series color

series
The source IRenderableSeries
xValue
The x value.
openValue
The open value.
highValue
The high value.
lowValue
The low value.
closeValue
The close value.
OverrideColor
public virtual Color? OverrideColor(IRenderableSeries series, double xValue, double yValue, double zValue)
result = paletteProviderBase.OverrideColor(series, xValue, yValue, zValue)

When called for an bubble point, override the color on the attached FastBubbleRenderableSeries. Return null to keep the default series color Return a value to override the series color

series
The source IRenderableSeries
xValue
The x value.
yValue
The y value.
zValue
The z value.