maui-devexpress-dot-maui-dot-charts-dot-segmentbasedfillcolorizer.md
Gets or sets the line segment colorizer that specifies colors used to paint area segments. This is a bindable property.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public ISegmentColorizer SegmentColorizer { get; set; }
| Type | Description |
|---|---|
| ISegmentColorizer |
A GradientPointBasedSegmentColorizer object.
|
In this example, the area chart visualizes the visible light spectrum.
Create a data source - a list of objects that define data points with numeric arguments (wavelength) and values (intensity).
Create a colorizer class (LightSpectorColorizer, in this example) that implements the ICustomPointColorizer interface.
Implement the GetColor method to return a data point’s color based on a ColoredPointInfo object passed to the method as a parameter. Use the ColoredPointInfo.NumericArgument property to obtain the data point’s argument value.
This class should also implement the ICustomPointColorizer.GetLegendItemProvider method and the ILegendItemProvider interface to specify legend items that show wavelength colors.
Assign a SegmentBasedFillColorizer object to the AreaSeries.FillColorizer property.
Set the SegmentBasedFillColorizer.SegmentColorizer property to a GradientPointBasedSegmentColorizer object, and assign a LightSpectorColorizer object to the GradientPointBasedSegmentColorizer.PointColorizer property.
See Also
SegmentBasedFillColorizer Class