Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public LegendItemsBehavior LegendItemsBehavior { get; set; }

#Property Value

Type Default Description
LegendItemsBehavior Series

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