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.
Unfortunately, activation email could not send to your email. Please try again.

Add chart in axml file

Thread ID:

Created:

Updated:

Platform:

Replies:

127555 Nov 22,2016 04:32 PM Nov 24,2016 07:29 AM Xamarin.Android 3
loading
Tags: SfChart
Martin Dusek
Asked On November 22, 2016 04:32 PM

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

Parthiban Sundaram [Syncfusion]
Replied On November 23, 2016 09:05 AM

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  

Regards,
Parthiban S

 


Martin Dusek
Replied On November 23, 2016 10:35 AM

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

Parthiban Sundaram [Syncfusion]
Replied On November 24, 2016 07:29 AM

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. 


CONFIRMATION

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.

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.

;