We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Legend Wrap (OverflowMode) on WPF SfCharts

I've noticed that in Xamarin platform you have an option to wrap legends ( https://help.syncfusion.com/xamarin/sfchart/legend#legend-wrap ).
I couldn't find that option on WPF. Is there a way to do the equivalent to OverflowMode="Wrap" in WPF Charts?
Thanks in advance

3 Replies

MK Muneesh Kumar G Syncfusion Team March 11, 2019 01:41 AM

Hi Carlos, 
Greetings from Syncfusion.  
We have analyzed your and we would like to inform you that when there is more number of legends, the legend exceeds the chart will be cropped, as it arranged horizontally.  
To avoid the cropping, we can change the existing arrangement layout (one which arrange each legend items horizontally) using ItemsPanel property as in below code snippet: 
Code snippet 
<syncfusion:SfChart x:Name="chart"> 
        <ItemsPanelTemplate x:Key="itemPanelTemplate"> 
            <syncfusion:ChartLegend ItemsPanel="{StaticResource itemPanelTemplate}"/> 
Hope it helps you.  
Muneesh Kumar G.  

CF Carlos Fernando Consigli March 11, 2019 08:27 AM

Excellent, thanks. It worked perfectly.

MK Muneesh Kumar G Syncfusion Team March 11, 2019 10:57 PM

Hi Carlos,  
Thanks for the update. 
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
Muneesh Kumar G.  

Live Chat Icon For mobile
Up arrow icon