These are chat archives for oxyplot/oxyplot

27th
Jan 2015
David Laundav
@david-laundav
Jan 27 2015 09:13

@objorke It doesn't say in the release notes, but is #348 a part of 2015.1.707-alpha?

http://www.nuget.org/packages/OxyPlot.Xamarin.Forms/2015.1.707-alpha

Øystein Bjørke
@objorke
Jan 27 2015 09:19
the PR should also have updated CHANGELOG.md - that file is used for the release notes
(I should have remembered that before merging!)
David Laundav
@david-laundav
Jan 27 2015 09:50
No worries at all. Just wanted to mention it. Could you tell me if #348 is a part of the 707 PR?
David Laundav
@david-laundav
Jan 27 2015 10:00

By the way, I figured out what was wrong with my references in my iOS project.

Once I uninstalled OxyPlot.Xamarin.Forms, and installed the new 707-alpha PR, it was for "some reason" (actually a very good one, which you'll see later) still referencing the Classic iOS OxyPlot.Xamarin.Forms API.

I was frustrated by this fact, since, when I created a new project, this was not an issue at all. This got me thinking.

Once upon a time, when I started my project, I was running Xamarin.Forms 1.2.3, and I have by now simply upgraded to the newest version (1.3.1.6296). I did some refactoring of my classes based on the post below, and thought that I was now running the Unified API:
http://www.infinite-x.net/2014/10/09/xamarin-forms-1-3-0-preview-formapplication/

Alas, upon further investigation, I found , that I had in fact NOT upgraded to the Unified API in my .csproj file:
http://developer.xamarin.com/guides/cross-platform/macios/updating_ios_apps/#Steps_to_Update_Manually

I followed the steps, removed OxyPlot, re-installed the 707 OxyPlot.Xamarin.Forms PR from the NuGet Package Manager Console, whereafter everything worked.

I will create a post on my blog about this on my own site. I think it is critical information, which is not currently present anywhere.

You are of course also welcome to post it on the OxyPlot site, which, I think, will make the life easier for many others in the same situation as me.

David Laundav
@david-laundav
Jan 27 2015 10:06

http://laundav.dk/oxyplot-xamarin-forms-unified-api/

I will update the post later today with more detailed information.

Øystein Bjørke
@objorke
Jan 27 2015 15:05
good post! I hope it will show up on the search engines! this information could also be added to the forum/knowledge base
I have tried getting the outdated OxyPlot.XamarinForms, OxyPlot.XamarinAndroid and OxyPlot.XamarinIOS NuGet packages off the NuGet listings, but no success so far...
OxyPlot.Xamarin.Forms, OxyPlot.Xamarin.Android and OxyPlot.Xamarin.iOS (both unified and classic/monotuch) are the current packages
Johan Larsson
@JohanLarsson
Jan 27 2015 15:08
I think there is a way to scope packages as private but I have never done it.
Andrew Strickland
@Gaisuru
Jan 27 2015 19:53
Do you have to do something special to get annotations to appear on the screen or just add them to the Annotations collection?
Andrew Strickland
@Gaisuru
Jan 27 2015 20:01
followed by a Model.InvalidatePlot(false);
I can't get the PointAnnotation to show anywhere
David Laundav
@david-laundav
Jan 27 2015 20:40

@Gaisuru Which platform are you targeting? You can always find a ton of examples in the link below for the different supported platforms:

https://github.com/oxyplot/oxyplot/tree/develop/Source/Examples/ExampleLibrary

There is even a folder dedicated to Annotations:
https://github.com/oxyplot/oxyplot/tree/develop/Source/Examples/ExampleLibrary/Annotations

@objorke Do you know when #348 will be available in the NuGet PR? Currently, I have to build the source myself before OxyPlot works for OxyPlot.Xamarin.Forms.Platform.iOS since the default ctor isn't included in 2015.1.707-alpha (or so it seems)
Andrew Strickland
@Gaisuru
Jan 27 2015 21:20
@david-laundav I'm targeting iOS for now. And I looked at the examples and I don't see anything except adding an annotation to the collection, which I am doing
@david-laundav The only different I can see is I'm using a DateTime x axis where the examples are using linear ones
Andrew Strickland
@Gaisuru
Jan 27 2015 22:01
@david-laundav Haha, figured it out.
The documentation is not good, but I was using the screen points and I needed to convert to graph data. Got it working
David Laundav
@david-laundav
Jan 27 2015 22:38
@Gaisuru Awesome! Sorry I couldn't be of more help, but I've been busy these days myself. And as always, you are more than welcome to provide more documentation/examples if you feel that it's necessary. The more contribution we get on this library, the better!