Back to Devexpress

ColoredPointInfo Class

maui-devexpress-dot-maui-dot-charts-95ac7d0b.md

latest2.1 KB
Original Source

ColoredPointInfo Class

Stores information about a series point for which a custom point colorizer specifies a color.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class ColoredPointInfo :
    ColoredPointInfoBase

Example

In this example, the bar chart displays monthly values colored based on the season.

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

  2. Create a colorizer class (CustomColorizer 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 as the method’s parameter. Use the ColoredPointInfo.DateTimeArgument property to obtain the data point’s argument value.

  3. Assign a CustomColorizer object to the BarSeries.PointColorizer property.

Inheritance

System.Object ColoredPointInfoBase ColoredPointInfo ColoredStackedPointInfo

ColoredWeightedPointInfo

Extension Methods

Yield<ColoredPointInfo>()

YieldIfNotNull<ColoredPointInfo>()

See Also

ColoredPointInfo Members

DevExpress.Maui.Charts Namespace