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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfChart not showing

Thread ID:





132159 Aug 17,2017 08:59 AM UTC Aug 21,2017 10:14 AM UTC Xamarin.Forms 4
Tags: SfChart
Christof Steps
Asked On August 17, 2017 09:04 AM UTC

Hello Everyone,

I'm currently working on a xamarin.forms application (mainly for Android) that needs chart for displaying data. I've been playing around with the SfCharts for hours but simply cannot get them to work. I tried tons of samples online and created ones myself, but they just dont show any charts.

What I did:
Add the PCL-Library (Syncfusion.SfChart.XForms)
Add the Android Libraries (Syncfusion.SfChart.Android, Syncfusion.SfChart.XForms, Syncfusion.SfChart.XForms.Android)

and the following xaml code:


Attached you find the sample project.

I hope you can help me find the solution!

Thanks and best regards,

Attachment: Chart_aa3fc1c5.zip

Christof Steps
Replied On August 17, 2017 09:06 AM UTC

Ok so there was a problem with the Xaml Code, which I fixed, but now I get an invalid cast exception everytime I start the application. Any Ideas?



Attachment: Chart_b382989f.zip

Muneesh Kumar G [Syncfusion]
Replied On August 18, 2017 08:48 AM UTC

Hi Christof Steps,

Sorry for the inconvenience caused.

Due to internal architecture change, now, it is not required to add Syncfusion.SfChart.Android.dll and Syncfusion.SfChart.iOS.dll assemblies to your platform specific projects such as Android and iOS in Xamarin.Forms respectively. Hence, you need to remove these two assemblies from your platform specific projects.

Please refer our release notes: https://help.syncfusion.com/xamarin/release-notes/v15.3.0.26?type=all#breaking-changes

Please let us know if you are facing any issue in this.

Muneesh Kumar G.

Christof Steps
Replied On August 18, 2017 09:08 AM UTC

Thank you very much, that's it!



Sivaram Ganesan [Syncfusion]
Replied On August 21, 2017 10:14 AM UTC

Hi Christof, 

Thanks for the update. 
We are glad to know that the given solution worked. Please get back to us if you need further assistance.  



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon