Chart Legend Format

Hi,



I wish to create the legend based on the above design. Appreciate your help if you can share the code example with me on how to achieve that 

Thanks & Best Regards


1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team September 12, 2022 10:13 AM UTC

Hi Jake,


We would like to let you know that for the series like Pie, Doughnut, Funnel and Pyramid, legends will be generated for all the data points. The legend label will be the x-value of the series data point.


We can customize the legend item by using the legend ItemTemplate or by using the LegendItemCreated event based on your requirement. Please refer the below link for more details.


https://help.syncfusion.com/xamarin/charts/legend#itemtemplate

https://help.syncfusion.com/xamarin/charts/legend#event

https://www.syncfusion.com/kb/9375/how-to-customize-the-individual-legend-item-based-on-a-condition-in-xamarin-forms-chart
https://help.syncfusion.com/xamarin/charts/legend#positioning-the-legend


GitHub sample link: https://github.com/syncfusion/xamarin-demos/tree/master/Forms/Chart/Chart/Samples/Legend


Please let us know if you need any further assistance.


Regards,

Devakumar D

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Loader.
Up arrow icon