ICustomColorizerNumericValueProvider.GetValueForColorizer(Int32) Method
In This Article
Returns a numeric value according to the data source point index. The colorizer uses this value to determine the point color.
Namespace: DevExpress.Maui.Charts
Assembly: DevExpress.Maui.Charts.dll
NuGet Package: DevExpress.Maui.Charts
#Declaration
C#
double GetValueForColorizer(
int index
)
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The data source point index. |
#Returns
Type | Description |
---|---|
Double | A numeric value to determine the point color. |
#Remarks
The following example implements a custom colorizer:
public class HpiIndexCustomColorizerAdapter : ICustomColorizerNumericValueProvider {
readonly CountriesStatisticData data = new CountriesStatisticData();
public List<CountryStatistic> SeriesData => this.data.SeriesData;
public double GetValueForColorizer(int index) {
return this.data.SeriesData[index].Hpi;
}
}
See Also