IPaletteProvider

StockSharp.Xaml.Charting.Visuals.RenderableSeries

Defines the interface to a PaletteProvider. By implementing this interface, you can override colors on a PaletteProvider by setting or binding to the BaseRenderableSeries property. On each point, the GetColor or OverrideColor methods will be called, allowing you the chance to return a custom color for that point.

Methods

GetColor
public Color? GetColor(IRenderableSeries series, double xValue, double yValue)
result = iPaletteProvider.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 Color? OverrideColor(IRenderableSeries series, double xValue, double openValue, double highValue, double lowValue, double closeValue)
result = iPaletteProvider.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 Color? OverrideColor(IRenderableSeries series, double xValue, double yValue, double zValue)
result = iPaletteProvider.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.