Hello,
Im just starting out with forms, created a simple forms plc project
(VisualStudio 2015)
I have added nuget reference to http://nuget.syncfusion.com/xamarin
Then throught nuget manager added the reference: Syncfusion.xamarn.sfchart
The I made a simple page to test the charts, code below
But nothing is appearing, im getting an error:
06-20 13:29:30.532 W/View ( 4391): requestLayout() improperly called by com.syncfusion.charts.ChartRootLayout{acfb4af8 V.E..... ......ID 20,20-1815,1130 #7f0b0064 app:id/rootLayout} during layout: running second layout pass
Could someone help me figure this out.
********************************************************************************
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xForms="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"
x:Class="ChartsTest.Page1"
<xForms:SfChart>
<xForms:SfChart.Series>
<xForms:ColumnSeries ItemsSource = "{Binding HighTemperature}"/>
</xForms:SfChart.Series>
</xForms:SfChart>
</ContentPage>
********************************************************************************
public partial class Page1 : ContentPage
{
public ObservableCollection<ChartDataPoint> HighTemperature { get; set; }
public Page1()
{
HighTemperature = new ObservableCollection<ChartDataPoint>();
HighTemperature.Add(new ChartDataPoint("Jan", 42));
HighTemperature.Add(new ChartDataPoint("Feb", 44));
HighTemperature.Add(new ChartDataPoint("Mar", 53));
HighTemperature.Add(new ChartDataPoint("Apr", 64));
HighTemperature.Add(new ChartDataPoint("May", 75));
HighTemperature.Add(new ChartDataPoint("Jun", 83));
HighTemperature.Add(new ChartDataPoint("Jul", 87));
HighTemperature.Add(new ChartDataPoint("Aug", 84));
HighTemperature.Add(new ChartDataPoint("Sep", 78));
HighTemperature.Add(new ChartDataPoint("Oct", 67));
HighTemperature.Add(new ChartDataPoint("Nov", 55));
HighTemperature.Add(new ChartDataPoint("Dec", 45));
InitializeComponent();
}
***************************************************************************