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
- Host: GitHub
- URL: https://github.com/syncfusionexamples/how-to-align-legend-items-in-.net-maui-charts
- Owner: SyncfusionExamples
- Created: 2024-06-03T12:19:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T13:27:14.000Z (over 2 years ago)
- Last Synced: 2025-02-08T20:47:53.524Z (over 1 year ago)
- Topics: chart-legend, charting-library, charts, data-visualization, items-layout, legend-alignment, legend-items, legend-layout, maui-charts
- Language: C#
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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

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