Skip to content

archer0302/oxyplot.blazor

 
 

Repository files navigation

OxyPlot.Blazor.BlazorPlotView Component

A sample from the examples library

Requirements

  • dot net 6.0 / net 7.0 / net 8.0

Usage

nuget package at https://www.nuget.org/packages/OxyPlot.Blazor/

Add Package Reference to OxyPlot.Core Add OxyPlot.Blazor library

add OxyPlotServices in Program.cs

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSingleton<WeatherForecastService>();
// add OxyPlot.Blazor scripting
builder.Services.AddOxyPlotBlazor();

var app = builder.Build();
@using OxyPlot.Blazor
<BlazorPlotView Width="100%" Height="30vh" Model="_model" />
@code {
	PlotModel _model = ... // some model
}

Known issues

  • Images anoations don't work yet (I do not understand that, they are just not visible)

About

Blazor PlotView for OxyPlot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 65.3%
  • HTML 25.1%
  • JavaScript 5.0%
  • CSS 4.6%