Back to Devexpress

LineSeries.LegendItemsBehavior Property

maui-devexpress-dot-maui-dot-charts-dot-lineseries-17083893.md

latest2.0 KB
Original Source

LineSeries.LegendItemsBehavior Property

Gets or sets whether the legend displays items for series colors or for series points. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public LegendItemsBehavior LegendItemsBehavior { get; set; }

Property Value

TypeDefaultDescription
LegendItemsBehaviorSeries

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

|

Available values:

NameDescription
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.

EachPointThe legend shows items for all points of the series. See Also

LineSeries Class

LineSeries Members

DevExpress.Maui.Charts Namespace