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
Syntaxpublic static int[] ConvertDataToColorsByFixedIntervalPalette(
double[] dataValues,
double[] paletteStepValues,
Color[] paletteStepColors
)
Public Shared Function ConvertDataToColorsByFixedIntervalPalette (
dataValues As Double(),
paletteStepValues As Double(),
paletteStepColors As Color()
) As Integer()
public:
static array<int>^ ConvertDataToColorsByFixedIntervalPalette(
array<double>^ dataValues,
array<double>^ paletteStepValues,
array<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:
Int32Colors as ARGB integer values.
See Also