maui-devexpress-dot-maui-dot-charts-f620be6e.md
A value range colorizer that colors series points based on their Y-axis values.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public class ValueBandPointColorizer :
BandPointColorizerBase,
IPointColorizer,
IStackedPointColorizer,
IWeightedPointColorizer
Use this colorizer type to color points of a Point, Bar, Line, Area, RangeArea, StackedArea, StackedBar or Bubble series based on Y-axis values:
In this example, the bar chart displays cryptocurrency portfolio yield. It colors series points red when their Y-axis values are between -100 and 0 , and green when values are between 0 and 100. Note that this chart diagram is rotated.
Create a data source – a list of objects each of which has the Ticker property that returns a string (point argument) and the Profit property that returns a number (point value).
Assign a ValueBandPointColorizer object to the BarSeries.PointColorizer property. Populate the colorizer’s ColorStops collection with two ColorStop objects that specify colors for ranges of point values.
System.Object BindableObject Element ChartElementBase ChartElement BandPointColorizerBase ValueBandPointColorizer
Yield<ValueBandPointColorizer>()
YieldIfNotNull<ValueBandPointColorizer>()
See Also