MatPlotLibNet.Blazor 0.4.1

dotnet add package MatPlotLibNet.Blazor --version 0.4.1
                    
NuGet\Install-Package MatPlotLibNet.Blazor -Version 0.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MatPlotLibNet.Blazor" Version="0.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MatPlotLibNet.Blazor" Version="0.4.1" />
                    
Directory.Packages.props
<PackageReference Include="MatPlotLibNet.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MatPlotLibNet.Blazor --version 0.4.1
                    
#r "nuget: MatPlotLibNet.Blazor, 0.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MatPlotLibNet.Blazor@0.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MatPlotLibNet.Blazor&version=0.4.1
                    
Install as a Cake Addin
#tool nuget:?package=MatPlotLibNet.Blazor&version=0.4.1
                    
Install as a Cake Tool

MatPlotLibNet.Blazor

Blazor components for the MatPlotLibNet charting library. Renders charts as inline SVG with optional real-time updates via SignalR.

Installation

dotnet add package MatPlotLibNet.Blazor

Components

MplChart -- static chart

@using MatPlotLibNet
@using MatPlotLibNet.Blazor

<MplChart Figure="@_figure" CssClass="my-chart" />

@code {
    private Figure _figure = Plt.Create()
        .WithTitle("Sales")
        .Bar(["Q1", "Q2", "Q3"], [100, 200, 150])
        .Build();
}

MplLiveChart -- real-time updates via SignalR

<MplLiveChart ChartId="dashboard-1"
              HubUrl="/charts-hub"
              CssClass="live-chart" />

Connects to a ChartHub endpoint and updates automatically when the server publishes new data.

Extension method

@((MarkupString)figure.ToMarkupString())

ToMarkupString() converts a Figure to an SVG MarkupString for direct rendering.

Dependencies

  • MatPlotLibNet (core)
  • Microsoft.AspNetCore.SignalR.Client

License

GPL-3.0 -- Copyright (c) 2026 H.P. Gansevoort

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.4.1 41 4/6/2026
0.4.0 37 4/6/2026
0.2.0 44 4/5/2026