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

Add chart in axml file

Thread ID:





127555 Nov 22,2016 09:32 PM UTC Nov 24,2016 12:29 PM UTC Xamarin.Android 3
Tags: SfChart
Martin Dusek
Asked On November 22, 2016 09:32 PM UTC

I have Xamarin.Android project. Is it possible to describe chart in axml file or is the only way to add the chart to my view from C#?

Parthiban Sundaram [Syncfusion]
Replied On November 23, 2016 02:05 PM UTC

Hi Martin,

Thanks for using Syncfusion products.

We had prepared the sample based on your requirement. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/127555/ze/SimpleSample-995987562  

Parthiban S


Martin Dusek
Replied On November 23, 2016 03:35 PM UTC

Hi Parthiban,
is it also possible to declare axis and series in axml?

I tried e.g.

      <com.syncfusion.charts.SfChart.DateTimeAxis android:id="@+id/axis">

But I get runtime error Android.Views.InflateException: Binary XML file line #1: Error inflating class com.syncfusion.charts.SfChart.PrimaryAxis


Parthiban Sundaram [Syncfusion]
Replied On November 24, 2016 12:29 PM UTC

Hi Martin

We have created an incident under your Direct Trac account. So, we request to follow the incident for further details.

Our Direct Trac support system can be accessed from the following link:


Parthiban S. 


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