Click or drag to resize

ChartToolsConvertDataToColorsByFixedIntervalPalette Method

LightningChart .NET Help
Convert data values to colors, by given palette. Palette is defined by steps, consisting of value and corresponding color. E.g. 0 : Black, 50: Yellow, 100: Red. The output colors are interpolated based on their position between steps. E.g. in this example palette, data value 60 will be almost yellow, but a little bit blending with red.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static int[] ConvertDataToColorsByFixedIntervalPalette(
	double[] dataValues,
	double[] paletteStepValues,
	Color[] paletteStepColors
)

Parameters

dataValues
Type: SystemDouble
Data values.
paletteStepValues
Type: SystemDouble
Values of palette. Count must be equal to step color count.
paletteStepColors
Type: System.DrawingColor
Colors of palette. Count must be equal to step value count.

Return Value

Type: Int32
Colors as ARGB integer values.
See Also