Coder Social home page Coder Social logo

Installation about livecharts2 HOT 21 CLOSED

jamsoft avatar jamsoft commented on August 18, 2024
Installation

from livecharts2.

Comments (21)

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024 2

It is working on Avalonia, just that view is obsolete, currently I am using the LiveChartsCore.SkiaSharpView.Avalonia project

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024 1

BTW, this is such a great library. So glad to see it developed!

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024 1

Oh arses ... I was looking to use this on AvaloniaUI project.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024 1

Yes Avalonia samples are updated

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024 1

Dude, you get a ROCKET!!! :)

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

Which file caused the issue? is everything working now?

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

Actually I just changed the path in the project properties but it seems there are a few other instances where it's looking for files in your local user directory.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

it seems that the documentation file is pointing to my pc:

<DocumentationFile>C:\Users\Beto\source\repos\LiveCharts\src\skiasharp\LiveChartsCore.SkiaSharp.Avalonia\LiveChartsCore.SkiaSharpView.Avalonia.xml</DocumentationFile>

https://github.com/beto-rodriguez/LiveCharts2/search?q=beto%2F

for now, try to uncheck it, from vs project properties

image

or just remove the DocuimentationFile element, it is not required to compile the project

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

Yeah, I dealt with those it's the 667 other compiler errors and code issues ReSharper is reporting that has me stumped at the moment.

Just opening the solution has a stack of errors before even running a build. Is there an environment setup document I've completely missed?

An example is in CartesianChart VS cannot resolve ICartesianChartView and ReSharper wants to import using LiveChartsCore.Kernel; namespace in order to resolve it.

That same file has using LiveChartsCore.Context; as a namespace which cannot be resolved.

I think these might all be misleading. They all seem to be related to the Uno projects. As far as I know there isn't any specific tooling to install to get Uno running and I have all the Uno prerequisites installed already.

Not sure what to check next to be honest.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

Please unload the Uno Project, it is paused by now

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

Ahhhhhhhhhh, will try.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

This is how it looks for me:

image

Please let me know if you were able to make it run, so I can fix it also.

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

Hmm ... same build issues.

In LiveChartsCore.AvaloniaView.CartesianChart

using LiveChartsCore.Context; is erroring as unresolvable as is ICartesianChartView VS/ReSharper wants to import using LiveChartsCore.Kernel;

When I allow it, it adds two namespaces:

using LiveChartsCore.Kernel;
using LiveChartsCore.Measure;

Even after importing that namespace, the var stylesBuilder = LiveCharts.CurrentSettings.GetStylesBuilder<AvaloniaDrawingContext>(); line cannot resolve the GetStylesBuilder method.

All very odd.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

sorry, also please remove the obsolete avalonia view

image

Need to clean the repo!

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

SWEEEEEEEEEEEEEEEEEEEEET!!!! :)

I use 0.9.7 in a .NET Framework so finding this working in AvaloniaUI is just fantastic. Is the Avalonia sample up to date?

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

IT BUILDS!

So I've removed

LiveCharts2\samples\UnoSample\UnoSample.Droid\UnoSample.Droid.csproj
LiveCharts2\samples\UnoSample\UnoSample.iOS\UnoSample.iOS.csproj
LiveCharts2\samples\UnoSample\UnoSample.macOS\UnoSample.macOS.csproj
LiveCharts2\samples\UnoSample\UnoSample.Skia.Gtk\UnoSample.Skia.Gtk.csproj
LiveCharts2\samples\UnoSample\UnoSample.Skia.Tizen\UnoSample.Skia.Tizen.csproj
LiveCharts2\samples\UnoSample\UnoSample.Skia.Wpf\UnoSample.Skia.Wpf.csproj
LiveCharts2\samples\UnoSample\UnoSample.Skia.Wpf.Host\UnoSample.Skia.Wpf.Host.csproj
LiveCharts2\samples\UnoSample\UnoSample.UWP\UnoSample.UWP.csproj
LiveCharts2\samples\UnoSample\UnoSample.Wasm\UnoSample.Wasm.csproj
LiveCharts2\samples\UnoSample\UnoSample.Shared\UnoSample.Shared.shproj
LiveCharts2\src\avalonia\LiveChartsCore.AvaloniaView\LiveChartsCore.AvaloniaView.csproj
LiveCharts2\src\skiasharp\LiveChartsCore.SkiaSharp.Avalonia\LiveChartsCore.SkiaSharpView.Avalonia.csproj
LiveCharts2\src\skiasharp\LiveChartsCore.SkiaSharpView.Uno\LiveChartsCore.SkiaSharpView.Uno.csproj

And it's now building fine. Thanks!

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

I can do a PR if you like?

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

AppShell Xaml also has a reference to a missing namespace XamarinSample.Views

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

The PR would help.

Are you familiar with SkiaSharp/Avalonia?
The obsolete Avalonia view is there because I am not sure if Avalonia will now only work with SkiaSharp. The current view requires Avalonia to run on SkiaSharp, while the "Obsolete view" does not depend on SkiaSharp.

You can also safely remove that missing namespace in the Xamarin project, I am not sure why it is asking for it, also Xamarin samples should be up to date.

from livecharts2.

jamsoft avatar jamsoft commented on August 18, 2024

Just did the PR. I've just this weekend picked up AvaloniaUI for a dashboard project. Hence looking for Avalonia compatible charts so I'm very new to it.

Skia I've used on Xamarin projects and wotnot.

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on August 18, 2024

Fixed with #30 and 1114d50, 6e1ac95, 331de94, d509f83

from livecharts2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.