OxyPlot.Blazor 2.5.9

OxyPlot.Blazor.BlazorPlotView Component

A sample from the examples library

Requirements

  • dot net 6.0 / net 7.0

Usage

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)
  • Tracker is an extra <div/> - not pretty, only shown, when Parameter TrackerEnabled is set to true

Showing the top 20 packages that depend on OxyPlot.Blazor.

Packages Downloads
Uni.Components.Core
Package Description
41
Uni.Components.Core
Package Description
34
Uni.Components.Core
Package Description
32
Uni.Components.Core
Package Description
31
Uni.Components.Core
Package Description
30
Uni.Components.Core
Package Description
20
Uni.Components.Core
Package Description
18
Uni.Components.Core
Package Description
17
Uni.Components.Core
Package Description
13
Uni.Components.Core
Package Description
12
Uni.Components.Core
Package Description
11

.NET 6.0

.NET 7.0

Version Downloads Last updated
2.5.9 24 1/16/2025
2.5.8 20 9/25/2024
2.5.7 32 6/4/2024
2.5.6 31 5/21/2024
2.5.5 50 8/26/2023
2.5.4 46 7/3/2023
2.5.3 7 7/3/2023
2.5.2 7 7/3/2023