Back to Devexpress

LineSeries.SegmentColorizer Property

maui-devexpress-dot-maui-dot-charts-dot-lineseries-02e9f497.md

latest1.8 KB
Original Source

LineSeries.SegmentColorizer Property

Gets or sets the colorizer that paints line segments. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public ISegmentColorizer SegmentColorizer { get; set; }

Property Value

TypeDescription
ISegmentColorizer

The colorizer object that paints line segments.

|

Example

In this example, the spline chart displays the temperature curve colored based on ranges of temperature values.

  1. Create a data source - a list of objects that define data points with date-time arguments and numeric values.

  2. Assign a GradientPointBasedSegmentColorizer object to the SplineSeries.SegmentColorizer property.

  3. Assign a ValueBandPointColorizer object to the GradientPointBasedSegmentColorizer.PointColorizer property. Populate the colorizer’s ColorStops collection with ColorStop objects that specify colors for ranges of temperature values.

See Also

LineSeries Class

LineSeries Members

DevExpress.Maui.Charts Namespace