Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

How-to-align-legend-items-in-.NET-MAUI-Charts

This sample demonstrates How to align the chart legend items in .NET MAUI Charts.

Chart Legend:

The legend provides information about the data point displayed in the chart. The Legend property of the chart was used to enable it.

Additionally, set label for each series using the Label property of chart series, which will be displayed in corresponding legend.

Chart legend visibility

Using IsVisible property, display or hide the legend items.

ToggleSeriesVisibility

Using ToggleSeriesVisiblity property, indicate whether the chart series visibility by tapping the legend item.

ItemsTemplate

Using ItemsTemplate property, customize the legend items appearance.

ItemsLayout

Using ItemsLayout property, align legend items in various ways, such as horizontally, vertically, in a grid, or in a custom arrangement.

Output

KB_Legend-Items

For more detail, refer this article link.

About

This sample demonstrates How to align the chart legend items in .NET MAUI Charts

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages