RioCharts.Blazor 0.6.2-preview

This is a prerelease version of RioCharts.Blazor.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RioCharts.Blazor --version 0.6.2-preview
                    
NuGet\Install-Package RioCharts.Blazor -Version 0.6.2-preview
                    
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="RioCharts.Blazor" Version="0.6.2-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RioCharts.Blazor" Version="0.6.2-preview" />
                    
Directory.Packages.props
<PackageReference Include="RioCharts.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 RioCharts.Blazor --version 0.6.2-preview
                    
#r "nuget: RioCharts.Blazor, 0.6.2-preview"
                    
#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 RioCharts.Blazor@0.6.2-preview
                    
#: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=RioCharts.Blazor&version=0.6.2-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RioCharts.Blazor&version=0.6.2-preview&prerelease
                    
Install as a Cake Tool

RioCharts

Charts for .NET. One chart model, drawn everywhere: interactive in Blazor, PNG and SVG on the server, and created by AI agents. C# does the math and layout; in Blazor, Razor renders SVG and a tiny JS module only measures text and follows the pointer.

Four charts made with RioCharts: sessions per day as an area and a line against a goal, orders per quarter as stacked bars, revenue by channel as a donut, and sessions per hour and weekday as a heatmap.

Drawn by RioCharts.Skia itself. See them live, with tooltips and zoom

Status: early preview. APIs will change without notice before 1.0. Human-led, AI-built: the design is ours (Design.md); most code is written by AI coding agents and tested and snapshot-checked before it ships.

Blazor

dotnet add package RioCharts.Blazor --prerelease

Add @using RioCharts.Blazor and @using RioCharts.Core to _Imports.razor. That is all: no services to register, and the styles come with your app's {App}.styles.css bundle.

<RioChart Items="orders" Title="Orders per day">
    <ReferenceLine Value="1000" Label="Goal" />
    <LineSeries Name="Web" XValue="o => o.Day" YValue="o => o.Web" />
    <BarSeries Name="App" XValue="o => o.Day" YValue="o => o.App" />
</RioChart>

@code {
    record DailyOrders(DateTime Day, double Web, double App);
    List<DailyOrders> orders = ...;
}

The axes, ticks, number and date formats, legend and colors come from the data; options are typed parameters. Change Items and the chart draws again. It works on Server, WebAssembly and Auto, with static rendering and prerendering, trimmed and native AOT, and in .NET MAUI Blazor Hybrid apps.

Series: line, area, range area, bar (grouped, stacked, horizontal), scatter with trend lines, bubble, heatmap, box plot, histogram, dumbbell, range bar (timeline), candlestick, waterfall, pie, donut, radial bar, gauge, bullet, funnel, radar, treemap and world map.

Also in the box: tooltips and crosshair, zoom and pan, linked charts, annotations, error bars, data labels, click events, live data, large data (LTTB and a canvas layer), time zones, light and dark themes through CSS variables, PNG/SVG/CSV download, keyboard navigation, screen reader descriptions and built-in texts in eight languages.

Images on the server

RioCharts.Skia draws the same charts as PNG or SVG without a browser, for reports, emails and bots, with real font metrics and light or dark themes:

var spec = new ChartDefinition { Title = "Sessions", Series = [new SeriesOptions { Id = "web", Name = "Web" }] };
var data = new Dictionary<string, SeriesData> { ["web"] = SeriesData.From(times, values) };
byte[] png = ChartExport.ToPng(spec, data, new ExportOptions { Width = 640, Height = 320 });

AI agents

In your app. RioCharts.AI gives your agent create_chart and render_chart tools, as Microsoft.Extensions.AI functions or MCP server tools. The agent writes a small JSON definition against your datasets; the tool validates it, renders it and describes it:

var tool = new ChartTool(new InMemoryDataSource([ChartDataset.FromItems("shop", rows, "Online store traffic per channel, hourly")]));
var chat = new ChatOptions { Tools = tool.AsAIFunctions() };
tool.ChartCreated += result => Show(result.Png);

On your machine. riocharts-mcp is a local MCP server for Claude Code, Claude Desktop, GitHub Copilot and other agents. It renders charts from CSV and JSON files to PNG or SVG, and turns a chart into <RioChart> markup for your app:

dotnet tool install -g RioCharts.Mcp --prerelease
{ "mcpServers": { "riocharts": { "command": "riocharts-mcp", "args": ["--data", "data", "--out", "charts"] } } }

Coding agents. Models do not know RioCharts yet. Paste this into your repository's AGENTS.md (or CLAUDE.md, .github/copilot-instructions.md):

## 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.

Packages

All target .NET 10 (LTS) and .NET 11, and are previews: add --prerelease.

Package For
RioCharts.Blazor The <RioChart> component and its series (includes Core)
RioCharts.Skia PNG and SVG on the server
RioCharts.AI create_chart and render_chart tools for AI agents
RioCharts.Mcp riocharts-mcp, a local MCP server (a .NET tool)
RioCharts.Core The chart engine alone: scales, layout and a render-agnostic scene, no UI dependencies

Learn more

Product 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. 
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
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