These are chat archives for oxyplot/oxyplot

26th
Jan 2015
Øystein Bjørke
@objorke
Jan 26 2015 10:32
@Lailend the code tab shows code generated from the model. This code is quite limited - not including event handlers or controller code. It would be nice if there was a "show real source code" feature pointing to the actual source code on github (incl line number)
Øystein Bjørke
@objorke
Jan 26 2015 11:29
@david-laundav is the wrong assembly referenced in your unified API iOS project? maybe something is still wrong in the .nuspec file
David Laundav
@david-laundav
Jan 26 2015 13:40

@objorke, Could you give me a pointer on where to check that?

Right now, the following references exist in my .cssproj for my iOS project, where I used Install-Package OxyPlot.Xamarin.Forms -Pre which installed version 2015.1.700.0:

<Reference Include="OxyPlot, Version=2015.1.700.0, Culture=neutral, PublicKeyToken=638079a8f0bd61e9, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>......\ost\packages\OxyPlot.Core.2015.1.700-alpha\lib\portable-net4+sl4+wp71+win8+wpa81\OxyPlot.dll</HintPath>

</Reference>
<Reference Include="OxyPlot.MonoTouch">
<HintPath>......\ost\packages\OxyPlot.Xamarin.iOS.2015.1.700-alpha\lib\MonoTouch\OxyPlot.MonoTouch.dll</HintPath>
</Reference>

<Reference Include="OxyPlot.Xamarin.Forms.Platform.iOS.Classic">
<HintPath>......\ost\packages\OxyPlot.Xamarin.Forms.2015.1.700-alpha\lib\MonoTouch10\OxyPlot.Xamarin.Forms.Platform.iOS.Classic.dll</HintPath>
</Reference>

David Laundav
@david-laundav
Jan 26 2015 13:49
@objorke Testing #288 on iOS now
David Laundav
@david-laundav
Jan 26 2015 14:10

@objorke This seems weird. I created a new project, and now I can use the correct statement for the Unified API:

OxyPlot.Xamarin.Forms.Platform.iOS.Forms.Init();

I am not sure what the difference is. Will have to investigate further. It seems, that the .csproj of my new iOS project contains the following references for OxyPlot.

<Reference Include="OxyPlot">
<HintPath>....\packages\OxyPlot.Core.2015.1.700-alpha\lib\portable-net4+sl4+wp71+win8+wpa81\OxyPlot.dll</HintPath>
</Reference>
<Reference Include="OxyPlot.Xamarin.Forms.Platform.iOS">
<HintPath>....\packages\OxyPlot.Xamarin.Forms.2015.1.700-alpha\lib\Xamarin.iOS10\OxyPlot.Xamarin.Forms.Platform.iOS.dll</HintPath>
</Reference>

Maybe there is an issue when upgrading from old versions?

David Laundav
@david-laundav
Jan 26 2015 14:45

@objorke Hm, so using the following:

OxyPlot.Xamarin.Forms.Platform.iOS.Forms.Init();

I am receiving the following error:
Default constructor not found for type OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer

It should be noted, that I am also using Xamarin.Forms.Labs pre 1.2.1-alpha.

Trying to remove Xamarin.Forms.Labs now.

David Laundav
@david-laundav
Jan 26 2015 15:56
@objorke Added issue #348. The issue is only present on iOS as far as I know.
Øystein Bjørke
@objorke
Jan 26 2015 15:57
if updating a Xamarin.Forms classic iOS app to unified, then I think you should uninstall the OxyPlot NuGet package first, then reinstall after updating
David Laundav
@david-laundav
Jan 26 2015 16:00
Yeah, I did that, but for some reason, I guess the references weren't changed in my .csproj correctly.
Øystein Bjørke
@objorke
Jan 26 2015 16:01
I have not had time to test the latest packages for xamarin.forms myself yet. thanks for reporting the issues!
I have added high priority tags on these - should really get this working!
David Laundav
@david-laundav
Jan 26 2015 16:04

No worries! I actually just wanted to test #288, but it seems to have been a bigger operation than what I hoped for.

Although, I just tested #288, and it works fine now. Awesome change, @objorke! Thanks for that. The points in the ScatterSeries are now filled out when I click them, without having to scrolling the view first.

@objorke Do you want the source code I created so you can use that for your samples? It also includes tap gestures which I have seen asked for in the forums and in this chat
Øystein Bjørke
@objorke
Jan 26 2015 16:07
yes, more examples are always welcome! please create a PR!
David Laundav
@david-laundav
Jan 26 2015 16:07
Awesome. Will do ASAP.
@objorke Should I include it under "Issues" or "Series/ScatterSeries"?
Øystein Bjørke
@objorke
Jan 26 2015 16:12
that´s an example for #288, right? then I think it should be under "Issues"
David Laundav
@david-laundav
Jan 26 2015 16:12
Yes, correct. I'll place it there, then. Thanks!
Øystein Bjørke
@objorke
Jan 26 2015 16:12
if the issue is solved, then I think it could go under "Series" or "touch event examples"
David Laundav
@david-laundav
Jan 26 2015 16:13
Yeah, it seems to be solved, but I am not sure if it is for iOS due to #348
I will try to include a default ctor for #348 to see if it works either now or tonight.
@objorke Do you have a .sln which opens "OxyPlot.Xamarin.Forms.Platform.iOS/PlotViewRenderer.cs";?
Øystein Bjørke
@objorke
Jan 26 2015 16:18
there is an OxyPlot.Xamarin.Forms.sln, I think
includes Android and WP also
David Laundav
@david-laundav
Jan 26 2015 16:18
Found it, thanks though
David Laundav
@david-laundav
Jan 26 2015 21:57

@objorke Adding an empty constructor fixed issue #348. I will create a pull request.

Do you know when it will be included in the NuGet? I need to have the fix available ASAP as I am pretty stuck without it.

David Laundav
@david-laundav
Jan 26 2015 23:03
Created a pull request for #348. Can I merge it, or you will do that, @objorke?