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

Add chart in axml file

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#?

3 Replies

PS Parthiban Sundaram Syncfusion Team 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: https://www.syncfusion.com/downloads/support/forum/127555/ze/SimpleSample-995987562  

Parthiban S


MD Martin Dusek 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


PS Parthiban Sundaram Syncfusion Team 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. 

Live Chat Icon For mobile
Up arrow icon