ChartLegend ItemTemplate not work on Android but its work fine on IOS

SfChart.Legend = new ChartLegend()
            {
                ItemTemplate = new DataTemplate(() => new StackLayout() { Orientation = StackOrientation.Horizontal , Children = { new Xamarin.Forms.Label() { Text = "Hello" } , new Xamarin.Forms.Label() { Text = "World" } } }),
                DockPosition = LegendPlacement.Left
            };
if I remove DockPosition = LegendPlacement.Left  its work so how can i resolve this issue

5 Replies

MP Michael Prabhu M Syncfusion Team July 17, 2018 11:36 AM UTC

Hi Qwe, 
 
Greetings from Syncfusion, we have prepared sample to replicate the issue based on your code snippet and we are not able to reproduce this issue, we tried with the following containers 
 
1. Grid 
2. StackLayout 
3. ScrollView 
4. RelativeLayout 
 
Please find the sample from the below link.  
Sample: 138735
 
Since we are not aware of your exact application scenario, can you please look into our sample and modify it to your scenario to replicate the issue and revert us. This will help us to investigate further and provide you a better solution at the earliest. 
 
Thanks, 
Michael 




QW qwe August 13, 2018 11:06 AM UTC

After deep testing i think the issue is applicable on ios and android the legend text was cropped  you can refer to sample project to for more details 
the sample contains ( pie chart , column chart ) and two button to update the legend text in pie chart work fine but in column chart the text cropped

Attachment: Test100_33098c56.zip


MP Michael Prabhu M Syncfusion Team August 14, 2018 10:55 AM UTC

Hi Qwe, 
 
We were able to reproduce the reported issue at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.  
Please log on to our support website to check for further updates. 
http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/  
Thanks, 
Michael 



QW qwe August 15, 2018 12:41 PM UTC

i cant find this issue under my account please advice 


MP Michael Prabhu M Syncfusion Team August 16, 2018 05:41 AM UTC

Hi Qwe, 
 
Sorry for the delay, there was a technical glitch, we have created it now can you check now? 
 
Thanks, 
Michael 



Loader.
Up arrow icon