Charts not showing in iOS Simulator

4 posts, 0 answers
  1. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 27 Feb Link to this post

    Hi,

    My charts are not showing in iOS, but do show correctly in UWP, and mostly correct in Android. I've used both the Visual Studio Simulator, and the simulator on the MacBook and the results are the same.

    In iOS, just the labels and Axis lines render. My AppDelegate.cs file is setup correctly (below). My environment is:

    Xcode 8.2.1 (8C1002)

    Xamarin Studio 6.2 (build 1821).

    Xamarin Forms: 2.3.4.192-pre2

    Telerik.UI.for.Xamarin 2017.1.10217.5

    SkiaSharp (Views, Forms) 1.56.1

     

    I don't see any entries in the iOS log related to either the data, or Telerik, or chart.

     

     

     

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using Foundation;
    using UIKit;
    using Prism.Unity;
    using Microsoft.Practices.Unity;
    using Microsoft.Azure.Mobile;
    using Microsoft.Azure.Mobile.Analytics;
    using Microsoft.Azure.Mobile.Crashes;
    using Xamarin.Forms;
    using CarouselView.FormsPlugin.iOS;
    using Telerik.XamarinForms.Common.iOS;
    using Telerik.XamarinForms.Chart;
    using Telerik.XamarinForms.ChartRenderer.iOS;
     
    [assembly: ExportRenderer(typeof(RadCartesianChart), typeof(CartesianChartRenderer))]
    [assembly: ExportRenderer(typeof(RadPieChart), typeof(PieChartRenderer))]
     
    namespace MyNamespace.iOS
    {
        // The UIApplicationDelegate for the application. This class is responsible for launching the
        // User Interface of the application, as well as listening (and optionally responding) to
        // application events from iOS.
        [Register("AppDelegate")]
        public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
        {
            //
            // This method is invoked when the application has loaded and is ready to run. In this
            // method you should instantiate the window, load the UI into it and then make the window
            // visible.
            //
            // You have 17 seconds to return from this method, or iOS will terminate your application.
            //
            public override bool FinishedLaunching(UIApplication app, NSDictionary options)
            {
                new PieChartRenderer();
                new CartesianChartRenderer();
     
                global::Xamarin.Forms.Forms.Init();
                TelerikForms.Init();
                CarouselViewRenderer.Init();
     
                LoadApplication(new App(new iOSInitializer()));
     
                return base.FinishedLaunching(app, options);
            }
        }
     
        public class iOSInitializer : IPlatformInitializer
        {
            public void RegisterTypes(IUnityContainer container)
            {
     
            }
        }
     
    }
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1237 posts

    Posted 02 Mar Link to this post

    Hi Mark,

    We tried to reproduce the reported behavior on our side and it seems the code is working as expected. Could you please take a look at the attached project and let us know if if works on your side? If not, could you please change the implementation so that the issue can be reproduced and send over the project. This will allow us to further investigate the reasons behind.

    On the other hand, we would like to point out that our components are build against specific version of the XamarinForms. The version that our components are currently built against is 2.3.3.180. We recommend using it instead of the latest pre version. Also, it is a good idea to test the latest available release. We just released a new minor version. Please give it a try and let us know how it goes on your side.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 13 Mar in reply to Pavel R. Pavlov Link to this post

    Hi Pavlov,

    Thank you for your help. I needed some time to evaluate our needs. Because Xamarin Forms introduced some critical features in 2.3.4, including support for UWP Desktop, we'll need stay on that version for release of our app. However, I'm hoping that they will soon release 2.3.4 as a final version, so maybe Telerik will have support soon.

    Thank you,

    Mark

  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1237 posts

    Posted 14 Mar Link to this post

    Hi,

    Yes. We will update our components to the latest official XamarinForms version, once it is changed. We always try to stick to their latest release. Sometimes, however, they release one or two days after we did and this prevent us from being up to date with their version. If there are any critical fixes or features for the clients we could release update if the upgrading process is straightforward on our end. If it is not, we would need a couple of weeks before upgrading to the latest official XamarinForms version.

    I hope this information sheds some light.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top