How to change the legend position in .NET MAUI Chart (SfCircularChart)?
The .NET MAUI Circular Chart provides flexibility to adjust the legend’s position according to your requirements. You can set the position using the Placement property of ChartLegend. Legends can be placed to the right, left, top, or bottom of the chart. By default, the legend is positioned at the top.
The following code sample illustrates how to position the legend to the right of the chart.
[XAML]
<chart:SfCircularChart>
. . .
<!-- Legend position at right. -->
<chart:SfCircularChart.Legend>
<chart:ChartLegend Placement="Right"/>
</chart:SfCircularChart.Legend>
. . .
</chart:SfCircularChart>
[C#]
SfCircularChart chart = new SfCircularChart();
. . .
<!-- Legend position at right. -->
chart.Legend = new ChartLegend() { Placement = LegendPlacement.Right};
. . .
Output
Conclusion
I hope you enjoyed learning how to change the legend position in .NET MAUI Circular Chart.
Refer to our .NET MAUI Circular Chart feature tour page to learn about its other groundbreaking feature representations. You can also explore our .NET MAUI Chart documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Chart and other .NET MAUI components.
Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!