Skip to main content

LineSeries.LegendItemsBehavior Property

Gets or sets whether the legend displays items for series colors or for series points.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public LegendItemsBehavior LegendItemsBehavior { get; set; }

Property Value

Type Description
LegendItemsBehavior

A value that specifies which items the legend should display for the series.

Available values:

Name Description
Series

The legend generates items for series colors based on a colorizer applied to the series.

EachPoint

The legend generates items for all points of a series.

Remarks

Set the LegendItemsBehavior property to the Series or EachPoint value to specify how to generate legend items for the series.

Series (default)

Legend items identify series colors that a colorizer applied to the series specifies.

  • Predefined point colorizer - The legend displays items for colors from the default or custom palette.
  • Custom point colorizer - The legend displays items according to a custom legend item provider that the colorizer’s GetLegendItemProvider method returns.
  • Value range colorizer - The legend displays items for all value range colors that the colorizer’s ColorStops collection defines.
  • No colorizer - The legend contains an item that indicates the entire series color.
EachPoint
The legend shows items for all points of the series.
See Also