Back to Devexpress

ICustomColorizerNumericValueProvider Interface

maui-devexpress-dot-maui-dot-charts-0e476422.md

latest1.7 KB
Original Source

ICustomColorizerNumericValueProvider Interface

Interface that should be implemented by value providers for custom colorizers.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public interface ICustomColorizerNumericValueProvider

The following members return ICustomColorizerNumericValueProvider objects:

Remarks

The following example implements a custom colorizer:

View Example

xaml
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;
    }
}

Extension Methods

Yield<ICustomColorizerNumericValueProvider>()

YieldIfNotNull<ICustomColorizerNumericValueProvider>()

See Also

ICustomColorizerNumericValueProvider Members

DevExpress.Maui.Charts Namespace