An open API service indexing awesome lists of open source software.

https://github.com/syncfusionexamples/how-to-align-legend-items-in-.net-maui-charts

This sample demonstrates How to align the chart legend items in .NET MAUI Charts
https://github.com/syncfusionexamples/how-to-align-legend-items-in-.net-maui-charts

chart-legend charting-library charts data-visualization items-layout legend-alignment legend-items legend-layout maui-charts

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/SyncfusionExamples/How-to-align-legend-items-in-.NET-MAUI-Charts/assets/105482474/67a13117-259f-46db-8efd-04cd633a1dce)

For more detail, refer this article [link]().