We've followed the getting started of OxyPlot and it didn't work. Did anyone got it to work with Xamarin.Forms 1.3 pre-3?
It's pretty simple, here's the code we tried:
using System;
using Xamarin.Forms;
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.XamarinForms;
namespace Klaim
{
public class testpage : ContentPage
{
public testpage ()
{
Content = new StackLayout {
Children = {
new Label { Text = "Hello ContentPage" },
new PlotView
{
Model = new PlotModel { Title = "Hello Xamarin.Forms" },
VerticalOptions = LayoutOptions.Fill,
HorizontalOptions = LayoutOptions.Fill,
}
}
};
}
}
}
In the main Android activity:
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
global::OxyPlot.XamarinFormsAndroid.Forms.Init();
global::Xamarin.Forms.Forms.Init (this, bundle);
LoadApplication (new App ());
}
The used packages are in the attached file. The XAML version generates the same error. See attached files for the error.
An exception was thrown by the type initializer for OxyPlot.XamarinForms.PlotView
We also tried the Xamarin.Forms.Labs.Charting
without any success. Any help about charting in PCL would be greatly appreciated!
Xamarin.Forms.Labs.Charting reference: http://forums.xamarin.com/discussion/comment/93313/#Comment_93313