RioCharts.Blazor
0.2.1-preview
See the version list below for details.
dotnet add package RioCharts.Blazor --version 0.2.1-preview
NuGet\Install-Package RioCharts.Blazor -Version 0.2.1-preview
<PackageReference Include="RioCharts.Blazor" Version="0.2.1-preview" />
<PackageVersion Include="RioCharts.Blazor" Version="0.2.1-preview" />
<PackageReference Include="RioCharts.Blazor" />
paket add RioCharts.Blazor --version 0.2.1-preview
#r "nuget: RioCharts.Blazor, 0.2.1-preview"
#:package RioCharts.Blazor@0.2.1-preview
#addin nuget:?package=RioCharts.Blazor&version=0.2.1-preview&prerelease
#tool nuget:?package=RioCharts.Blazor&version=0.2.1-preview&prerelease
RioCharts
A pure .NET chart library, with Blazor as the first target. C# does the math and layout, Razor renders SVG, and a tiny JS module only measures the container and the font.
Docs and live examples: https://riocharts.com/
Early preview. APIs will change without notice before 1.0.
Packages
| Package | What |
|---|---|
RioCharts.Blazor |
<RioChart> with line, area, range area, bar (vertical or horizontal), scatter, heatmap, box plot, candlestick, pie, donut, radial bar, radar and treemap series; tooltips, zoom, annotations, export, keyboard and screen reader support, light and dark themes. |
RioCharts.Core |
The chart engine: scales, ticks, layout and a render-agnostic scene. No UI dependencies. |
RioCharts.Skia |
Server-side export to SVG and PNG with SkiaSharp, for reports, emails and agents. |
RioCharts.AI |
create_chart and render_chart tools for AI agents (Microsoft.Extensions.AI and MCP). |
RioCharts.Mcp |
riocharts-mcp: a local MCP server (.NET tool) that renders charts to PNG or SVG files and turns them into Blazor code. |
Blazor
Reference RioCharts.Blazor and add @using RioCharts.Blazor and @using RioCharts.Core to
_Imports.razor. Styles come with {YourApp}.styles.css automatically.
<RioChart Items="traffic" YAxis="@(new AxisSpec { Title = "Sessions" })">
<ReferenceLine Value="1000" Label="Campaign goal" />
<LineSeries Name="Web" XValue="r => r.Timestamp" YValue="r => r.Sessions" />
</RioChart>
Coding agents
Models do not know RioCharts yet. Paste this into your repository's AGENTS.md (or CLAUDE.md,
.github/copilot-instructions.md) so the agent reads the guide before it writes chart code:
## Charts
Charts use RioCharts.Blazor (preview, .NET 10 and 11). Before writing chart code, read
https://riocharts.com/llms-full.txt, or call get_usage if the riocharts MCP server is set up.
- Setup: the RioCharts.Blazor package, and `@using RioCharts.Blazor` and `@using RioCharts.Core` in `_Imports.razor`. Nothing to register.
- Set `TItem` on `<RioChart>` when it has event handlers (`OnPointClick`, ...).
- A chart updates when `Items` is a new list or `DataVersion` changes, not when a list is changed in place.
- Tooltips, zoom and clicks need an interactive render mode on the page.
Server-side export
byte[] png = ChartExport.ToPng(spec, data, new ExportOptions { Width = 640, Height = 320 });
MCP server for agents
dotnet tool install -g RioCharts.Mcp --prerelease
{ "mcpServers": { "riocharts": { "command": "riocharts-mcp", "args": ["--data", "data", "--out", "charts"] } } }
Source, changelog and issues: https://github.com/joadan/RioCharts (MIT license).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net11.0 is compatible. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.12)
- RioCharts.Core (>= 0.2.1-preview)
-
net11.0
- Microsoft.AspNetCore.Components.Web (>= 11.0.0)
- RioCharts.Core (>= 0.2.1-preview)
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 |
|---|---|---|
| 1.0.86-rc | 63 | 11/30/2026 |
| 1.0.77-rc | 69 | 11/27/2026 |
| 1.0.42-rc | 80 | 11/25/2026 |
| 1.0.2-rc | 66 | 11/25/2026 |
| 0.7.6-preview | 64 | 11/24/2026 |
| 0.7.2-preview | 62 | 11/24/2026 |
| 0.6.2-preview | 61 | 11/24/2026 |
| 0.5.23-preview | 60 | 11/24/2026 |
| 0.5.2-preview | 72 | 11/24/2026 |
| 0.4.1-preview | 61 | 11/23/2026 |
| 0.3.1-preview | 56 | 11/23/2026 |
| 0.2.8-preview | 58 | 11/22/2026 |
| 0.2.1-preview | 53 | 11/22/2026 |
| 0.1.50-preview | 53 | 11/21/2026 |
| 0.1.14-preview | 61 | 11/20/2026 |
| 0.1.2-preview | 62 | 11/20/2026 |