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.
Syncfusion Feedback

Getting a error for SfCharts

Thread ID:

Created:

Updated:

Platform:

Replies:

132955 Sep 30,2017 10:50 AM UTC Oct 3,2017 03:46 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Carlo Chan
Asked On September 30, 2017 10:50 AM UTC

Getting this error on main activity page... System.TypeLoadException: Could not load type Syncfusion.RangeNavigator.XForms.Droid.RangeNavigatorEventDependencyService while decoding custom attribute: (null)

just trying to implement a sfchart, haven't even gotten past the getting started and already getting an error.

here is my main activity code 

using System;


using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Syncfusion.SfChart.XForms.Droid;

namespace Drip.Droid
{
    [Activity(Label = "Drip.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            new SfChartRenderer();

            LoadApplication(new App());
        }
    }
}

And here is my xaml code

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Drip.MyPage" xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms">
    <ContentPage.Content>
   <chart:SfChart x:Name="Chart">

    <chart:SfChart.PrimaryAxis>
  <chart:CategoryAxis LabelRotationAngle= "-45">
    <chart:CategoryAxis.Title>
      <chart:ChartAxisTitle Text="Meetup Date"/>
    </chart:CategoryAxis.Title>
  </chart:CategoryAxis>
</chart:SfChart.PrimaryAxis>

    <chart:SfChart.SecondaryAxis>
  <chart:NumericalAxis>
    <chart:NumericalAxis.Title>
      <chart:ChartAxisTitle Text="Count"/>
    </chart:NumericalAxis.Title>
  </chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
</chart:SfChart>
    </ContentPage.Content>
</ContentPage>

Yuvaraj Palanisamy [Syncfusion]
Replied On October 3, 2017 03:46 AM UTC

Hi Carlo chan,

Thanks for contacting Syncfusion support.

We were unable to reproduce the reported issue at our end. Please Clean and Rebuild your application or update the sample to reproduce the issue which will be helpful for providing the better solution on this.

Regards,
Yuvaraj 


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.

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

;