Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

The cross-platform plotting library - OxyPlot - is now available for Webassembly using Blazor and SkiaSharp.

License

Notifications You must be signed in to change notification settings

JensKrumsieck/OxyPlot.SkiaSharp.Blazor

Repository files navigation

OxyPlot.SkiaSharp.Blazor

NuGet Badge Maintainability .NET GitHub issues GitHub commit activity GitHub license GitHub tag (latest by date)

The cross-platform plotting library - OxyPlot - is now available for Webassembly using Blazor and SkiaSharp.

Screenshot

Installation

dotnet add package OxyPlot.SkiaSharp.Blazor

Usage

<PlotView Model=model style="height: 30vh"/>
@code{
    private PlotModel model = new PlotModel();
    ...
    protected override async Task OnInitializedAsync()
    {
        var data = GetSomeDataPoints(); //get datapoint array from somewhere
        var spc = new LineSeries()
        {
            ItemsSource = data,                
            Title = "UV/Vis Data",
            TrackerFormatString = "{0}<br/>{1}: {2:0.00} - {3}: {4:0.00}"
        };
        model.Series.Add(spc);
    }
}

Requirements:

  • .NET 6.0 (lower .NET versions are impossible due to a novelty introduced in 6.0)
  • SkiaSharp.Views.Blazor v2.88.0-preview.179 or higher
  • OxyPlot.SkiaSharp v2.1.0 or higher

About

The cross-platform plotting library - OxyPlot - is now available for Webassembly using Blazor and SkiaSharp.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy