LiveCharts2 (v2) is the evolution of LiveCharts (v0), it fixes the main design issues of its predecessor, it's focused to run everywhere, improves flexibility without losing what we already had in v0.
The following image is a preview, v2.0
is beta now, you can install it from NuGet: beto-rodriguez#35, it support WPF, WinForms, Avalonia, WinUI, UWP and Xamarin for now but MAUI will also be supported.
here is a preview (1.4MB gif, wait for it to load if you see a blank space bellow this text...):
In Visual Studio go to the Solution Explorer
then right click on Dependencies
then Manage NuGet Packages
, enable the "Include prerelease" checkbox and in the browse tab search for the view of your target platform:
LiveChartsCore.SkiaSharpView.WPF
LiveChartsCore.SkiaSharpView.WinForms
LiveChartsCore.SkiaSharpView.Avalonia
LiveChartsCore.SkiaSharpView.XamarinForms
LiveChartsCore.SkiaSharpView.UWP (see #145)
LiveChartsCore.SkiaSharpView.WinUI
You can also use LiveCharts 2 on a console app or on the server side installing only the core packages, and using the ISkiaSharpChart
objects (see this sample).
LiveChartsCore.SkiaSharpView
V0 is built on top of WPF, this has many problems, WPF is not designed for the purposes of the library, it is always tricky to find a solution for the problems of the library.
When we were on v0 and tried to take the library to UWP, we noticed it required a huge effort with the architecture the library had in v0. V2 is designed to work on multiple platforms, it requires minimal effort to take the library to a new platform.
Not necessarily, The SkiaAPI makes it much easier to take the library everywhere, but that does not means that LiveCharts2 requires it to work we could easily move to any other drawing engine.