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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't get chart to display

Thread ID:





127079 Oct 24,2016 08:13 PM UTC Oct 25,2016 12:31 PM UTC Xamarin.Forms 2
Tags: SfChart
Asked On October 24, 2016 08:13 PM UTC

I have created a SfChart in my code behind. I am getting no error but the chart doesn't display on the page. I think it may be a problem with my Xaml but I'm not sure. I have tried following other examples, but to no avail. My problem is that everything builds and deploys and stepping through with the debugger I can see the different properties getting the data etc. Any help on this would be great.

 <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
        <Grid x:Name="ChartGrid">

 ChartGrid.BindingContext = theViewModel;
                chart.PrimaryAxis = new DateTimeAxis();
                chart.PrimaryAxis.Title.Text = "Date";
                chart.Legend = new ChartLegend();
                chart.Legend.DockPosition = LegendPlacement.Top;
                chart.Legend.Title.Text = "Test";
                chart.Legend.BindingContext = testnames;
                chart.PrimaryAxis = new CategoryAxis() { Interval = 2, LabelPlacement = LabelPlacement.BetweenTicks };
                chart.SecondaryAxis = new NumericalAxis() { Minimum = 0, Maximum = 100, Interval = 5 };
                chart.Title.Text = "Player test scores";
                chart.Series.Add(new ColumnSeries()
                    ItemsSource = playertestdata,
                    XBindingPath = dates.ToString(),
                    YBindingPath = testscores.ToString()

Replied On October 24, 2016 08:23 PM UTC


Parthiban Sundaram [Syncfusion]
Replied On October 25, 2016 12:31 PM UTC

Hi CiaranMacAogin,

We have prepared a sample based on your requirement. Please download a sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/127079/ze/SimpleSample-706470217  
Parthiban S


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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