Oxyplot.AvaloniaCore
2.1.2
dotnet add package Oxyplot.AvaloniaCore --version 2.1.2
NuGet\Install-Package Oxyplot.AvaloniaCore -Version 2.1.2
<PackageReference Include="Oxyplot.AvaloniaCore" Version="2.1.2" />
paket add Oxyplot.AvaloniaCore --version 2.1.2
#r "nuget: Oxyplot.AvaloniaCore, 2.1.2"
// Install Oxyplot.AvaloniaCore as a Cake Addin #addin nuget:?package=Oxyplot.AvaloniaCore&version=2.1.2 // Install Oxyplot.AvaloniaCore as a Cake Tool #tool nuget:?package=Oxyplot.AvaloniaCore&version=2.1.2
OxyPlot.Avalonia
OxyPlot is a plotting library for .NET. This package targets Avalonia applications.
dotnet add package OxyPlot.Avalonia
Usage
To use the library, add the following to your App.xaml
:
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Sensei.Presentation.Avalonia.App">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<StyleInclude Source="resm:OxyPlot.Avalonia.Themes.Default.xaml?assembly=OxyPlot.Avalonia"/>
<StyleInclude Source="avares://AvaloniaEdit/Themes/Simple/AvaloniaEdit.xaml"/>
</Application.Styles>
</Application>
Then, you can add plots to your application, as such:
<avalonia:Plot Height="150"
PlotMargins="50 0 0 0"
PlotAreaBorderColor="#999999">
<avalonia:Plot.Series>
<avalonia:AreaSeries
DataFieldX="Index"
DataFieldY="Value"
ItemsSource="{Binding Path=Values}"
Color="#fd6d00" />
</avalonia:Plot.Series>
</avalonia:Plot>
See the AvaloniaExamples project and OxyPlot Documentation to learn how to create more complex plots.
Installing Preview Versions
To access the latest version of OxyPlot.Avalonia
you can add this repo as a submodule to your own git repo:
mkdir ./external
git submodule add git@github.com:oxyplot/oxyplot-avalonia.git ./external/oxyplot-avalonia
# Reference the ../external/oxyplot-avalonia/Source/OxyPlot.Avalonia/OxyPlot.Avalonia.csproj project then.
Another way is to import our Azure Artifacts NuGet package feed by creating the following nuget.config
file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="OxyPlot.Avalonia-CI" value="https://worldbeater.pkgs.visualstudio.com/OxyPlot.Avalonia/_packaging/OxyPlot.Avalonia-CI/nuget/v3/index.json" />
</packageSources>
</configuration>
Next, install the latest preview version of the OxyPlot.Avalonia
package as such:
dotnet add package OxyPlot.Avalonia
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Avalonia (>= 11.0.6)
- Avalonia.Desktop (>= 11.0.6)
- OxyPlot.Core (>= 2.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.2 | 706 | 12/31/2023 |