Back to Devexpress

ColoredPointInfo Class

mobilecontrols-devexpress-dot-xamarinforms-dot-charts-760630e5.md

latest2.2 KB
Original Source

ColoredPointInfo Class

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

Namespace : DevExpress.XamarinForms.Charts

Assembly : DevExpress.XamarinForms.Charts.dll

NuGet Package : DevExpress.XamarinForms.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

Object ColoredPointInfoBase ColoredPointInfo ColoredStackedPointInfo

ColoredWeightedPointInfo

See Also

ColoredPointInfo Members

DevExpress.XamarinForms.Charts Namespace