This sample demonstrates How to align the chart legend items in .NET MAUI Charts.
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.
Using IsVisible property, display or hide the legend items.
Using ToggleSeriesVisiblity property, indicate whether the chart series visibility by tapping the legend item.
Using ItemsTemplate property, customize the legend items appearance.
Using ItemsLayout property, align legend items in various ways, such as horizontally, vertically, in a grid, or in a custom arrangement.
For more detail, refer this article link.
