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

Hi,
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  

Regards,
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
      android:id="@+id/sfChart"
      android:layout_width="200dp"
      android:layout_height="200dp">
    <com.syncfusion.charts.SfChart.PrimaryAxis>
      <com.syncfusion.charts.SfChart.DateTimeAxis android:id="@+id/axis">
      </com.syncfusion.charts.SfChart.DateTimeAxis>
    </com.syncfusion.charts.SfChart.PrimaryAxis>
</com.syncfusion.charts.SfChart>

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

Thanks


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:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  

Regards,
Parthiban S. 


Loader.
Live Chat Icon For mobile
Up arrow icon