1

I'm a beginner on Xamarin and SciChart. I've downloaded the SciChart package which I'd like to use in my application.

I've added the references SciChart.Android.Charting.dll, SciChart.Android.Core.dll, SciChart.Android.Data.dll and SciChart.Android.Drawing.dll. Immediately after that when i try to run the application (without using the dll's) I got several build errors:

error: package com.scichart.charting.model.dataSeries does not exist extends 
com.scichart.charting.model.dataSeries.HIDataSeries
...

Does anyone know how I can solve this issue? What else do I have to do?

My second question is where I can find a xaml example on how to use the SciChart-package. All code examples I've found is code behind code but no xaml code to use the actual charts etc.

random
  • 487
  • 1
  • 9
  • 19
  • 2
    You need to add it via their private nuget channel as individually adding references will not work correctly. And those packages are Xamarin.Android|iOS based, not Xamarin.Forms based so you will need to embed them as native views within a Xamarin.Forms package : https://msdn.microsoft.com/en-us/magazine/mt790186.aspx – SushiHangover Apr 20 '18 at 07:35
  • Thanks, that helped. Next problem is that a get a reference error: "SciChart 5.1.0.11405 was restored using .NETFramework 4.6.1 instead of project target framework v2.0". Isn't Xamarin compatible with .Net 4.6, because it's installed but i cannot select any higher version than 2.0 in project properties. – random Apr 20 '18 at 11:35

1 Answers1

0

I believe reference error which you mentioned is caused by referencing SciChart WPF DLLs.

Please take a look on this tutorial which shows how to add SciChart Android DLLs from NuGet feed.

Hope this will help you!

Disclosure: I am the lead developer on the SciChart Android team

Yura Khariton
  • 484
  • 2
  • 6