# RioCharts > Charts for .NET: line, area, bar, scatter, bubble, pie, donut, radial bar, gauge, bullet, funnel, radar, heatmap, calendar heatmap, box plot, histogram, dumbbell, range bar (timeline), candlestick, waterfall, treemap and world map, interactive in Blazor, as PNG and SVG on the server, and from AI agents. This guide covers the Blazor component, the usual way into an app. The chart is laid out in .NET and rendered as SVG; a small JS module only measures text and handles the pointer. Packages are 1.0 release candidates (the API is frozen until 1.0) and target .NET 10 (LTS) and .NET 11. This is the complete guide for coding agents: setup, rules, examples that compile, and every component parameter. Docs with live examples: https://riocharts.com/ ## Setup 1. Add the package (a 1.0 release candidate, so `--prerelease` is needed): ```shell dotnet add package RioCharts.Blazor --prerelease ``` 2. Add two usings to `_Imports.razor`: ```razor @using RioCharts.Blazor @using RioCharts.Core ``` 3. That is all. There are no services to register (`AddRioCharts` is optional, for app-wide defaults) and no script or stylesheet tags: the styles come with the app's `{AssemblyName}.styles.css` bundle (already linked by the Blazor templates) and the JS module loads itself. Tooltips, zoom, clicks, selection, keyboard navigation and downloads need an interactive page (`@rendermode InteractiveServer`, `InteractiveWebAssembly` or `InteractiveAuto`, or a global interactive render mode). On a static page the chart renders as plain SVG without interaction. .NET MAUI Blazor Hybrid apps (`dotnet new maui-blazor`) use the same package and usings, nothing else: the chart runs in the app's WebView and is always interactive, so no render mode is needed. Tested on Windows; Android and iOS not yet. Other packages, only when needed: `RioCharts.Skia` (PNG/SVG export on the server, `ChartExport`), `RioCharts.AI` (chart tools for AI agents), `RioCharts.Core` (the engine alone; RioCharts.Blazor already brings it). ## How it works - `` holds series as child components (``, ``, ...) and annotations (``, ...). Series render nothing themselves; the chart lays them out together. - `Items` goes on the chart (shared by all series) or on each series. `TItem` is inferred from `Items`; set `TItem` on `` when only the series have `Items` or when the chart has event handlers (`OnPointClick`, ...). - `XValue` returns the x value: `DateTime`/`DateTimeOffset` give a time axis, numbers a linear axis, strings a category axis (categories keep the order of the items). Times and numbers are sorted by the chart: no need to sort the items. - `YValue` returns `double?`; `null` leaves a gap. Cast `decimal` to `double`. - Data over several powers of ten (1 to 1,000,000): a log y axis, `YAxis="@(new AxisOptions { Scale = ScaleType.Log })"` (`"scale": "log"` in JSON definitions). Values of zero or below are left out. The same on `XAxis` for numeric x under lines and scatter points (not bars), e.g. load time against page size, log on both axes. - Many categories (e.g. bars per country): labels that do not fit slope at 45 degrees, so all show. `XAxis="@(new AxisOptions { LabelRotation = 90 })"` sets another angle; `LabelRotation = 0` keeps them horizontal and shows every n-th. - Largest first: `Sort="ChartSort.Descending"` on a `BarSeries` orders the categories by its values after `Aggregate` (e.g. counts). Sorting `Items` does not help with aggregates. - One y axis per unit: `YAxes="@([new AxisOptions { Id = "kw", Title = "kW" }])"` on the chart and `YAxisId="kw"` on the series. Extra axes go right unless `Position = AxisPosition.Left`; several on one side sit side by side. Add `SeriesColor = true` to each axis to color it like its series. - Few points on a line (say under 20): `Highlight="PointHighlight.All"` puts a dot on every point (`MarkerSize` for the diameter). Other values mark single points: `First`, `Last`, `Min`, `Max`, combined with `|`. - Forecast, plan or target next to the actual values: `Dash="LineDash.Dashed"` or `Dash="LineDash.Dotted"` on a `LineSeries` (or the top line of an `AreaSeries`); the legend swatch shows the same pattern. JSON: `"dash": "dashed"`. - Bars never take more than a fifth of the plot, so a lone bar after filtering stays narrow; `MaxBarWidth="40"` on a `BarSeries` caps them in pixels. - `OnPointClick` on lines fires for a click within 16 px of a point (the closest point wins), so a click on the line next to a point picks it; between points far apart nothing is picked. Bars: anywhere on the bar. - Pins: `OnPointClick` gives the item; add a `` for it. With `OnAnnotationClick` set, a click on the pin raises `OnAnnotationClick` (with its `Id`), even on a data point: remove the pin there. - Tooltip time: `XAxis="@(new AxisOptions { TooltipFormat = "d MMM HH:mm" })"` formats the tooltip header only (no seconds, no zone offset); `Format` is for the axis labels. - Several items with the same x: `Aggregate="Aggregate.Sum"` (also Average, Min, Max, Count, Last), or `YAggregate="g => ..."` with your own calculation over the group. - Error bars (bar, line and scatter series): `ErrorValue="m => m.StdDev"` (plus or minus, per item), `Error="2.5"` (the same for every point), or `ErrorLowValue` and `ErrorHighValue` (the ends, as values). JSON: `errorField`, `error`, `errorLow` and `errorHigh`. - Time x per hour, day, month...: `Bucket="TimeBucket.Day"` on line, area and bar series gives one point per bucket, combined with `Aggregate` (average when not set). `TimeBucket.Auto` picks the bucket from the data's time span (about 50 points). With `TimeZone` on the chart, buckets follow that zone's calendar (a day is midnight to midnight there). No need to group in the query. - Updates: selectors run once per data change. The chart reprocesses a series when `Items` is a new reference or `DataVersion` changes. Changing a list in place does nothing until you assign a new list or change `DataVersion`. For streaming data use a `SeriesBuffer`. - Size: the chart fills its container's width; `Height` is 300 px by default. - Number formats are .NET format strings (`Format="#,0 €"`, `"0.0 °C"`, `"0'%'"`) in the chart's `Culture` (default: the current culture). A series without `Format` uses its axis' `Format` in tooltips, data labels and the screen reader text, so setting it on the axis alone is enough; a series' `Format` never changes the axis. Ticks are never closer than the format can tell apart (`"#,0"` gives whole numbers). - Labels a format string cannot write (bytes as KB/MB/GB, durations): `YAxis="@(new AxisOptions { LabelFormatter = v => ... })"`, a `Func` that also writes the tooltips of series without a `Format`. Keep the values unscaled. For 1024-based units add `TickBase = 1024`, so ticks land on 20 MB, 40 MB rather than 47.7 MB. - Settings shared by every chart (Culture, TimeZone, Height, Legend, Tooltip, XAxis, YAxis, Animate, Class): register them once in Program.cs, `builder.Services.AddRioCharts(new RioChartDefaults { Culture = ..., Height = 260 })` (optional; reaches every render mode). A cascaded `RioChartDefaults` (``) overrides it for part of the app, or changes at runtime. Each setting: the chart's own parameter, else the cascade, else the registered one. A chart's `YAxis` replaces the default axis as a whole (`defaults.YAxis with { Title = "kWh" }` keeps the rest). - Colors: CSS colors or theme variables, e.g. `Color="#2563eb"` or `Color="--rio-negative"`. The palette and light/dark theme come from CSS variables (`--rio-series-1` ... `--rio-series-10`, `--rio-text`, ...). The dark theme follows the OS, or an ancestor with `data-theme="dark"`, Bootstrap's `data-bs-theme="dark"` or class `dark` (and `light` the same way), so an app's theme toggle works without extra code. - Namespaces beyond the two usings: `RioCharts.Core.Data` (`SeriesData`, `SeriesBuffer`), `RioCharts.Core.Definitions` (`ChartDataset`, `ChartDefinitionJson`). ## Choosing a series | To show | Component | Key parameters | | --- | --- | --- | | Change over time, trends | `LineSeries` | `XValue`, `YValue`, `Curve` | | Volume over time, parts of a total over time | `AreaSeries` | `Stack` to stack | | Compare categories | `BarSeries` | `Aggregate`, `Stack`, `Horizontal="true"` on the chart | | Shares per x value (100 % stacked) | `BarSeries`, `AreaSeries` | `YAxis="@(new AxisOptions { Stacking = StackMode.Percent })"` on the chart | | Min to max band | `RangeAreaSeries` | `LowValue`, `YValue` | | Relation between two numbers | `ScatterSeries` | `XValue` and `YValue` numeric, `TrendLine` | | Three numbers per item (x, y and a size) | `ScatterSeries` with `SizeValue` | bubbles; `SizeName` labels the size in the tooltip | | Shares of a whole | `PieSeries`, `DonutSeries` | `GroupSmallSlices` | | Progress toward a goal | `RadialBarSeries` | `Max` | | One value on a scale (load, how full), with ranges and a target | `GaugeSeries` | `Value` (or `YValue` per item, `XValue` its label), `Max`, `Target`, `ColorBands` | | Values against targets in little space (KPIs) | `BulletSeries` | one per measure with `Value`, `Max`, `Target`; or Items with `XValue`, `YValue`, `TargetValue` | | Stages narrowing down (visits → cart → purchase) | `FunnelSeries` | `XValue` (the stage), `YValue`; stages keep the items' order, each shows its share of the stage before; one funnel per chart | | Several measures per item | `RadarSeries` | one series per item | | A value per day over months or a year (orders, activity) | `CalendarSeries` | `XValue` a date or time; items on the same day add up (`Aggregate` to change), no `YValue` counts them; one calendar per chart | | Values over two categories (hour × day) | `HeatmapSeries` | one series per row (`Name`); `XValue` the column, `YValue` the color; `Midpoint="0"` for changes (two colors); `ColorBands` for stepped colors (green/yellow/red ranges, with a legend of the bands) | | Spread of values | `BoxPlotSeries` | raw values, or `Q1Value`, `MedianValue`, `Q3Value`; `Horizontal="true"` on the chart for rows | | Distribution of values (e.g. response times) | `HistogramSeries` | one item per value, `XValue` the value; `BinWidth` or `BinCount` | | Two values per category (before/after, plan/actual) | `DumbbellSeries` | `XValue` the category, `FromValue` the first value, `YValue` the second; `Horizontal="true"` on the chart for rows | | Periods per row on a time axis (schedule, states over time) | `RangeBarSeries` | `RowValue`, `StartValue`, `EndValue`; one series per state | | Open, high, low, close | `CandlestickSeries` | `OpenValue`, `HighValue`, `LowValue`, `CloseValue`, or raw values with `Bucket` | | From a start value to an end value (result, budget) | `WaterfallSeries` | `YValue` the change, `IsTotal` marks totals; `Horizontal="true"` on the chart for rows | | Hierarchy by size | `TreemapSeries` | `XValue` (path or name), `ParentValue`, `VisibleLevels` | | Values per country, places on a world map | `MapSeries`, `MapBubbleSeries` | `MapSeries`: `XValue` the country code ("SE") or English name, `YValue` the value; `MapBubbleSeries`: `XValue` the place's name, `YValue` its size, `LatitudeValue`, `LongitudeValue`; `Projection="MapProjection.Mercator"` on the chart for the web-map look | Check the parameters of each component in the reference below before using them. ## Examples Each example is a complete component file. These exact files are compiled and rendered by the RioCharts tests. ### Line chart over time Two series from one list of items. Times give a time axis; more than one series adds a legend. ```razor @code { private sealed record DayVisits(DateTime Day, double Web, double App); private readonly List visits = [ new(new DateTime(2026, 3, 2), 1240, 860), new(new DateTime(2026, 3, 3), 1310, 905), new(new DateTime(2026, 3, 4), 1185, 940), new(new DateTime(2026, 3, 5), 1420, 990), new(new DateTime(2026, 3, 6), 1530, 1080), ]; } ``` ### Bars summed per category Raw items in, one bar per category: Aggregate sums the items with the same x. Categories keep the order of the items. ```razor @code { private sealed record Order(string Country, decimal Value); private readonly List orders = [ new("Sweden", 120), new("Norway", 80), new("Sweden", 95), new("Denmark", 60), new("Norway", 45), new("Finland", 70), ]; } ``` ### Stacked bars Series with the same Stack value stack on each other. ```razor @code { private sealed record MonthSales(string Month, double Shoes, double Clothing, double Gear); private readonly List sales = [ new("Jan", 42, 61, 18), new("Feb", 38, 57, 22), new("Mar", 51, 66, 25), ]; } ``` ### Donut (or pie) Shares of a whole. GroupSmallSlices puts slices under 3 % into "Other". PieSeries takes the same parameters. ```razor @code { private sealed record Channel(string Name, double Revenue); private readonly List channels = [ new("Web shop", 420), new("Stores", 310), new("Marketplaces", 150), new("Phone", 12), ]; } ``` ### Two y axes and a target line Extra axes in YAxes go on the right; a series picks one with YAxisId. Annotations are child components. ```razor @code { private sealed record DayStats(string Day, double Orders, double Conversion); private readonly List days = [ new("Mon", 280, 2.1), new("Tue", 310, 2.4), new("Wed", 265, 1.9), new("Thu", 340, 2.6), new("Fri", 390, 2.9), ]; } ``` ### Clicks, zoom and downloads Needs an interactive page (@rendermode InteractiveServer, InteractiveWebAssembly or InteractiveAuto); static pages show the chart without interaction. ```razor @if (clicked is not null) {

@clicked.SeriesName at @clicked.X: @clicked.Y °C

} @code { private sealed record Reading(DateTime Time, double? Celsius); // null leaves a gap in the line private PointClickEventArgs? clicked; private readonly List readings = [.. Enumerable.Range(0, 48).Select(h => new Reading(new DateTime(2026, 6, 1).AddHours(h), 18 + 6 * Math.Sin(h / 24.0 * 2 * Math.PI)))]; } ``` ### Live data Append to a SeriesBuffer from any thread; the chart redraws at most every RefreshInterval ms. With a buffer, TItem is not used: set it to double. ```razor @using RioCharts.Core.Data @implements IDisposable @code { private readonly SeriesBuffer requests = new(timeWindow: TimeSpan.FromMinutes(2)); private Timer? timer; protected override void OnInitialized() => timer = new Timer(_ => requests.Append(DateTime.Now, Random.Shared.Next(80, 120)), null, 0, 500); public void Dispose() => timer?.Dispose(); } ``` ### A chart built in code A ChartDefinition (the same model as a chart definition in JSON) with datasets instead of child components, e.g. for charts chosen at runtime. Fields are camelCase property names. ```razor @using RioCharts.Core.Definitions @code { private sealed record Sale(string Region, double Amount); private readonly ChartDefinition chart = new() { Title = "Sales per region", Series = [new SeriesOptions { Id = "sales", Type = SeriesType.Bar, Dataset = "sales", X = "region", Y = "amount", Aggregate = Aggregate.Sum }], }; private readonly Dictionary datasets = new() { ["sales"] = ChartDataset.FromItems("sales", new[] { new Sale("North", 120), new Sale("South", 95), new Sale("North", 40) }), }; } ``` ## Common mistakes - No interactive render mode: the chart shows, but tooltips, zoom, clicks and downloads do nothing. Add `@rendermode InteractiveServer` (or WebAssembly/Auto) to the page. - Changing a `List` in place (`Add`, `Remove`) and expecting the chart to update: assign a new list, or change `DataVersion`. - `YValue="x => x.Amount"` where `Amount` is `decimal`: write `(double)x.Amount`. - Several series with their own `Items` and no `TItem` on ``: set `TItem="YourType"`. - An event handler lambda (`OnPointClick="e => clicked = e"`) without `TItem`: Blazor cannot infer `TItem` through it and reports errors such as "Cannot convert lambda expression". Set `TItem="YourType"` on ``. - Blazor-ApexCharts names: there is no `ApexPointSeries` or `SeriesType` parameter; each type is its own component (``, ``, ...). `XValue`, `YValue`, `YAggregate` work as in ApexCharts. - Animation options (ApexCharts `Animations`, Chart.js `animation`): there are none. Charts are not animated; the series only fade in on first render. `Animate="false"` turns that off. - Setting a width: not needed, the chart follows its container. Set `Height` for another height. - Types not found (`SeriesData`, `SeriesBuffer`, `ChartDataset`): add `@using RioCharts.Core.Data` or `@using RioCharts.Core.Definitions`. - Repeating `Culture`, `TimeZone`, `Height` or axis settings on every chart: register a `RioChartDefaults` with `AddRioCharts` instead (ApexCharts' `AddApexCharts` global options). - Fake values to get stepped heatmap colors (ApexCharts `colorScale.ranges`): use `ColorBands` on the first `HeatmapSeries`. - Hard-coded colors for light and dark: use theme variables such as `--rio-negative` and `--rio-positive`; they follow the theme. ## Reference Every public component and its parameters, from the XML docs. Types in `RioCharts.Core` and `RioCharts.Blazor` used by parameters follow the components. ### Components #### `` (`RioChart`) A chart. Series are added as child components: `` The chart fills its container's width and lays out again when the width changes. - `Items`: `IEnumerable?` — Items shared by all series that do not set their own. - `ChildContent`: `RenderFragment?` — The series and annotation components, e.g. and . - `Title`: `string?` — Title shown above the chart. - `Height`: `double` = `300` — Height in pixels. Default 300, or the cascaded `RioChartDefaults`. - `Width`: `double?` — Fixed width in pixels. Default: the container's width (responsive). - `TreemapPath`: `string?` — Treemaps: the group shown (drill-down), as a path with the series' separator, e.g. `"Asia"` or `"Asia/India"`; null shows the whole tree. Maps: the area zoomed into, a continent (`"Europe"`) or a country (`"SE"`); null shows the world. Two-way bindable with `@bind-TreemapPath`, e.g. to keep it in the page's URL. - `Exportable`: `bool` — Shows a download button in the chart's top-right corner (on hover or focus) with a menu for SVG, PNG and CSV. The same exports are available from code: `RioChart.DownloadPngAsync` etc. - `ExportFormats`: `ExportFormats` = `ExportFormats.All` — The formats in the download menu. Default all. With a single format the button saves it directly, without a menu; with none there is no button. - `ExportFileName`: `string?` — File name without extension for downloads. Default: the title, else "chart". - `XAxis`: `AxisOptions?` — The horizontal axis: title, range, scale and label format. Default: the scale is picked from the data. - `YAxis`: `AxisOptions?` — The primary vertical axis (id "y" unless set). - `YAxes`: `IReadOnlyList?` — Additional vertical axes; series pick one with `YAxisId`. - `Legend`: `LegendOptions?` — Legend settings. Default: at the top, shown when there is more than one series. - `Tooltip`: `TooltipOptions?` — Tooltip settings. On and shared across series by default. - `TooltipHeader`: `Func, string?>?` — Text for the tooltip header from the hovered point, e.g. `p => $"Week {Iso(p.X)}"`; null keeps the default (the formatted x, or the series name for nested pies). Runs once per layout for the points that can be hovered, not on pointer moves. - `TooltipTemplate`: `RenderFragment>?` — Custom tooltip content (Razor), rendered inside the tooltip card. The crosshair still follows the pointer in the browser; the content is rendered by .NET when the hovered x changes, so on Blazor Server it follows one network round trip behind. Prefer `RioChart.TooltipHeader` and the series' `TooltipValue` when text is enough. - `Annotations`: `IReadOnlyList?` — Annotations as data (in addition to and children). - `TimeZone`: `string?` — Display time zone: "UTC", "local" (the viewer's browser zone) or an IANA id such as "Europe/Stockholm". Default: none, times are shown as given. With a zone, times are plotted on instants (no doubling back at DST changes) and labelled in that zone. - `UnspecifiedTimes`: `UnspecifiedTimes?` — With a TimeZone: how DateTime values with Kind Unspecified are read (UTC or the display zone). - `Culture`: `CultureInfo?` — Culture for labels. Default: the cascaded `RioChartDefaults`, else the current culture. - `Texts`: `ChartTexts?` — The chart's own texts ("Reset zoom", "No data available", the download menu, screen reader texts), e.g. `ChartTexts.Swedish with { ResetZoom = "Visa allt" }`. Default: a `ChartTexts` cascaded by the app, else `ChartTexts.For` the `RioChart.Culture` or, without one, the current UI culture. - `HiddenSeries`: `IReadOnlyCollection?` — Ids of hidden series. Two-way bindable with `@bind-HiddenSeries`. - `Zoomable`: `bool` — Zoom and pan on the x axis: drag to zoom in, Shift+drag to pan, Ctrl/⌘+wheel to zoom at the pointer, pinch or two-finger drag on touch screens, double-click or the reset button to zoom out. Not for category axes. - `VisibleRange`: `ChartRange?` — The visible x range (null: all data). Two-way bindable with `@bind-VisibleRange`. - `Group`: `string?` — Charts with the same group name share the crosshair and (when zoomable) the zoom. They should have the same kind of x axis. - `SeriesLayer`: `SeriesLayer` — Draw the series as SVG (default) or on a canvas: no DOM per series, for large or many series. Axes, labels and annotations stay SVG (annotations then sit under the series). - `DownsampleThreshold`: `int?` — Line and area series with more points than this are downsampled (LTTB). Default: twice the plot width, four times on a canvas. - `RefreshInterval`: `int` = `100` — Live data (series with a `Buffer`): the shortest time between redraws, in milliseconds. Default 100. - `Compact`: `bool` — Compact chart (sparkline): no axes, grid, legend or title; the series fill the box and the y range fits the data (bars keep zero). Set a small `RioChart.Height` too, e.g. 32. Keyboard navigation is off unless `RioChart.KeyboardNavigation` is set; the chart has a short text summary. - `AutoCompact`: `bool` = `true` — Default true: as the chart gets small (a narrow container, a low `RioChart.Height`), it leaves out axis titles first, then the legend, the title and the axis labels, so the plot keeps the space; the tooltip still shows the series and values. Below 120 × 60 px it becomes a compact chart. False keeps everything at any size. - `Horizontal`: `bool` — Bar, box plot, waterfall and dumbbell charts: they run left to right, with the categories down the side (first on top). For rankings and long category names. `RioChart.YAxis` (title, format, min, max) applies to the values. - `Projection`: `MapProjection` — Maps: how the round world is drawn flat. `MapProjection.EqualEarth` (default) keeps every country's true relative size; `MapProjection.Mercator` is the projection of web maps, with familiar shapes but areas that grow toward the poles. Overrides a `RioChart.Definition`'s projection unless left at the default. - `Interactive`: `bool` = `true` — False draws plain SVG without the JS module: no tooltip, hover, zoom, keyboard navigation, download button or width measuring. For many small charts (compact charts in a table) or static pages. Set `RioChart.Width` for exact geometry; otherwise the chart is laid out at a default width (640, compact 160) and scaled to fit. Read once, when the chart first renders. - `KeyboardNavigation`: `bool?` — Keyboard navigation (default on, off for compact charts): the chart is a tab stop, and with it focused the arrow keys move between points (Up/Down: between series; pies: between slices), showing the tooltip and announcing the point to screen readers; Enter clicks it, Escape leaves. With `RioChart.Zoomable`, + and - zoom around the focused point, Shift+Left/Right pans and 0 resets. Handled in the browser. - `Animate`: `bool` = `true` — False turns off all motion: the short fade when the series first appear, and the fades of the tooltip, buttons and dimmed series. Charts never animate data changes, zoom or streaming either way, and motion is always off when the user asks for reduced motion. To change only the fade's length, set the CSS variable `--rio-enter-duration` (default `0.35s`; `0s` turns it off). - `Class`: `string?` — Extra CSS class on the container. - `Definition`: `ChartDefinition?` — A chart definition (e.g. from JSON or an AI agent) instead of child components: series read their x and y fields from `RioChart.Datasets` or the definition's inline data. Layout options such as Height, Culture and HiddenSeries still come from the component. - `Datasets`: `IReadOnlyDictionary?` — Datasets that a `RioChart.Definition` refers to, by name. - `Selection`: `ChartSelectionMode` — What the user can select: points (click) or an x range (drag). Default none. Selections from code (`RioChart.SelectedItems`, `RioChart.SelectedRange`, `RioChart.SelectItemsAsync`) show either way. Points need items (not columnar data). Drawn on vertical cartesian charts. - `SelectedItems`: `IReadOnlyCollection?` — The selected items. Two-way bindable with `@bind-SelectedItems`. - `SelectedRange`: `ChartRange?` — The selected x range (null: none). Two-way bindable with `@bind-SelectedRange`. - `OnLegendClicking`: `EventCallback` — Raised before a legend click shows or hides a series; set `Cancel` to keep it as it is. `RioChart.OnLegendClick` follows only when the series was toggled. - `TreemapPathChanged`: `EventCallback` — Raised when the group shown changes (two-way binding of `RioChart.TreemapPath`). - `OnDrillDown`: `EventCallback` — Treemaps: raised when the shown group changes (a click on a group or the path bar, or `RioChart.DrillDownAsync`), with its path (e.g. "Asia/India"); null for the whole tree. - `OnExporting`: `EventCallback` — Raised when the user picks a format in the download menu, before the file is saved: rename it, change the options, or cancel the download and handle the content yourself. Not raised for the export methods called from code. - `HiddenSeriesChanged`: `EventCallback>` — Called with the new hidden series when the user toggles one in the legend. - `OnLegendClick`: `EventCallback` — Raised after a legend click has toggled a series. - `OnPointClick`: `EventCallback>` — Raised when a point or bar is clicked. Lines, areas and scatter points: a click within 16 px of a point (the closest point of any series wins), so a click on a line next to a point picks it, but one between points far apart picks nothing. Bars: anywhere on the bar. Pies, heatmaps, treemaps and calendars: the slice or cell. - `OnAnnotationClick`: `EventCallback` — Raised when an annotation is clicked: a reference line or band, a point annotation or a callout (each becomes a focusable button). A click on a point annotation's marker, label or callout box is the annotation's, even when it sits on a data point; elsewhere a point or bar under the pointer wins over an annotation underneath. - `OnAnnotationChanged`: `EventCallback` — Raised when the user has dragged a reference line (`Draggable`). For lines in `RioChart.Annotations`, update the definition's value here; components use `@bind-Value`. - `VisibleRangeChanged`: `EventCallback` — Called with the new visible range after a zoom, pan or reset (null: all data). - `OnZoomChanging`: `EventCallback` — Raised before a zoom or pan is applied; the handler may change or cancel it. - `SelectedItemsChanged`: `EventCallback>` — Called with the selected items when the selection changes. - `SelectedRangeChanged`: `EventCallback` — Called with the selected range when the selection changes (null: none). - `OnSelectionChanged`: `EventCallback>` — Raised when the selection changes, by the user or from code. ##### Methods (call through `@ref`) - `string? GetTreemapPath()` — Treemaps: the group shown, as a path with the series' separator; null when the whole tree is shown (or the path is not there). - `Task DrillDownAsync(string? path)` — Treemaps: shows a group (drill-down), e.g. `"Asia"` or `"Asia/India"` (the series' path separator), as clicking it does; null or "" shows the whole tree. A path that is not there shows the whole tree. - `bool IsSeriesVisible(string seriesId)` — Whether a series is shown (not hidden through the legend, `RioChart.HiddenSeries` or code). - `Task ShowSeriesAsync(string seriesId)` — Shows a hidden series (raises `HiddenSeriesChanged`). - `Task HideSeriesAsync(string seriesId)` — Hides a series; it keeps its color and legend item (raises `HiddenSeriesChanged`). - `Task ToggleSeriesAsync(string seriesId)` — Shows a hidden series or hides a shown one, as a legend click does (without the legend events). - `Task HighlightSeriesAsync(string? seriesId)` — Fades every series but this one (and their data labels), e.g. while a matching table row is hovered; null shows all again. Hovering or focusing a legend item does the same for its series meanwhile. SVG series layer; needs JS (interactive rendering). - `string? GetHighlightedSeries()` — The series highlighted with `RioChart.HighlightSeriesAsync`, or null. - `ChartPoint? ValueToPixel(object x, double y, string? yAxis = null)` — The chart position of a data value, e.g. to place your own element over the chart: x as a DateTime, number or category name, y on the given axis (default: the first). Positions outside the plot are returned too. Null before the first layout, for an x not on the axis, and for pies and horizontal bars. - `ChartValue? PixelToValue(double x, double y, string? yAxis = null)` — The data value at a chart position (CSS pixels from the chart's top left), e.g. from a mouse event: x as a DateTime, number or the nearest category's name, y on the given axis (default: the first). Null before the first layout, and for pies and horizontal bars. - `Task ApplyAsync(Func changes)` — Runs several changes (zoom, selection, hidden series, …) and draws the chart once at the end instead of after each. Events and bound parameters are raised as the changes happen. Matters most on Blazor Server, where each render is a round trip. - `Task ExportSvgAsync(ChartImageOptions? options = null)` — The chart as a standalone SVG document, as currently drawn (size, zoom, hidden series and theme colors resolved). Needs an interactive render mode. - `Task ExportPngAsync(ChartImageOptions? options = null)` — The chart as a PNG image, as currently drawn. Needs an interactive render mode. - `string ExportCsv(CsvOptions? options = null)` — The data of every series (hidden ones too) as CSV: an x column and one column per series. Works without a browser. See `ChartCsv`. - `Task DownloadSvgAsync(string? fileName = null, ChartImageOptions? options = null)` — Saves the chart as an SVG file in the browser (file name without extension; default `RioChart.ExportFileName`). Does nothing once the browser has disconnected. - `Task DownloadPngAsync(string? fileName = null, ChartImageOptions? options = null)` — Saves the chart as a PNG file in the browser. Does nothing once the browser has disconnected. - `Task DownloadCsvAsync(string? fileName = null, CsvOptions? options = null)` — Saves the data as a CSV file in the browser. Does nothing once the browser has disconnected. - `ChartDefinition GetDefinition()` — The chart model: the `RioChart.Definition` parameter, or one built from the parameters and child components (for saving, or as a starting point for edits). - `void Refresh()` — Lays out again, e.g. after changing data in place without a new reference or DataVersion. - `ChartRange? GetVisibleRange()` — The visible x range, or null when all data is shown. - `Task ZoomToAsync(ChartRange range)` — Shows the given x range (clamped to the data). - `Task ResetZoomAsync()` — Shows all data again. - `Task PanAsync(double fraction)` — Moves the visible range by a fraction of its width (negative: left). - `IReadOnlyList GetSelectedItems()` — The selected items: the selected points', or those of the points in the selected range. - `ChartRange? GetSelectedRange()` — The selected x range, or null. - `Task SelectItemsAsync(IEnumerable items)` — Selects the points of these items (replacing the selection). - `Task SelectRangeAsync(ChartRange? range)` — Selects an x range (replacing the selection); null clears it. - `Task ClearSelectionAsync()` — Clears the selection. - `IReadOnlyList GetItemsInRange(ChartRange range)` — The items of the visible series' points inside an x range, in series order, each once. Empty for columnar data and category axes. - `Task ShowTooltipAsync(object x)` — Shows the crosshair and tooltip at an x value (DateTime, number or category name), as if the pointer were there; linked charts (same `RioChart.Group`) show their crosshair too. It stays until `RioChart.HideTooltipAsync`, also across new data, and comes back after the pointer leaves the chart. Cartesian charts; needs JS (interactive rendering). - `Task HideTooltipAsync()` — Hides the tooltip shown with `RioChart.ShowTooltipAsync`. #### Parameters of every series (`SeriesBase`) Every series component below takes these, plus its own. - `Items`: `IEnumerable?` — Items to plot. Defaults to the chart's Items. - `Id`: `string?` — Unique id (used by `HiddenSeries`). Defaults to `SeriesBase.Name`, else generated. - `Name`: `string?` — Name shown in the legend. - `XValue`: `Func?` — X value: a number, DateTime, DateTimeOffset, DateOnly or string (category). Numbers and times are sorted by x, so the items can come in any order (clicks and tooltips still give the right item); categories keep the order of the items. - `YValue`: `Func?` — Y value; null leaves a gap. - `Aggregate`: `Aggregate?` — Combines items with the same x into one point: the Sum, Average, Min, Max or Last of `SeriesBase.YValue`, or the Count of items (needs no YValue). Use `SeriesBase.YAggregate` for anything else. Without either, items with the same x are drawn on top of each other. - `YAggregate`: `Func, double?>?` — Combines items with the same x into one point, with y computed from the group, e.g. `g => g.Sum(o => o.Amount)`; null leaves a gap. Used instead of `SeriesBase.YValue` and `SeriesBase.Aggregate` when set. A clicked point's items are in `PointClickEventArgs.Items`. - `Data`: `SeriesData?` — Columnar data (fast path for large series); used instead of Items when set. - `DataVersion`: `object?` — Change this to reprocess the data after changing Items in place. - `Color`: `string?` — CSS color. Defaults to the next palette color. - `ColorValue`: `Func?` — A color per item, e.g. `o => o.Late ? "--rio-negative" : null`: a CSS color or a theme token (tokens follow light and dark themes); null keeps the series color. Bars, scatter markers, pie slices, radial bars, heatmap cells and treemap items take the color; lines and areas mark the point with a dot in it. Aggregated points take their first item's color. Runs once per data change, like the other selectors. - `ColorBands`: `IReadOnlyList?` — Colors by value, e.g. `[new() { Above = 120, Color = "--rio-negative" }]`: a line or area changes color where it crosses into a band, a bar, scatter point or heatmap cell takes the color of the band its value is in. Later bands win where they overlap; `SeriesBase.ColorValue` wins over bands. - `ZIndex`: `int?` — Draw order override (default: areas, then bars, then lines). - `YAxisId`: `string?` — Id of the vertical axis to use (see `RioChart.YAxes`). Default: the primary axis. - `Stack`: `string?` — Stack group: series of the same type with the same stack name are stacked. - `DataLabels`: `bool?` — Show values on the chart. Default: off, except for pie, donut and radial bar. - `Format`: `string?` — .NET format string for values in tooltips, data labels and the screen reader text, e.g. "0.0". Default: the format of the series' axis (its `Format` or `LabelFormatter`), else automatic. It does not change the axis labels: set the same format on the axis once, and leave it off the series. - `TooltipValue`: `Func, string?>?` — Text for this series' value in the tooltip, e.g. `p => $"{p.Y:0} ms"` or `p => $"{p.Y:0} ms (target {p.Item!.Target} ms)"`; null keeps the default (`SeriesBase.Format`). Runs once per layout for the points that can be hovered, not on pointer moves. - `Buffer`: `SeriesBuffer?` — Live data (used instead of Items and Data when set). Append to it from any thread; the chart redraws at most every `RioChart.RefreshInterval` milliseconds. #### `` (`LineSeries`) Line series. - `Bucket`: `TimeBucket?` — Time x: one point per bucket (e.g. `TimeBucket.Day` or `TimeBucket.Month`, on the items' wall-clock time, or in the chart's `TimeZone` when set) at the bucket's start, combining its items with `Aggregate` (average when not set) or `YAggregate`. `TimeBucket.Auto` picks the bucket from the data's time span (about 50 buckets). - `Curve`: `CurveType` — Line shape: Linear, Monotone (smooth, no overshoot) or Step. - `StrokeWidth`: `double` = `2` — Line width in pixels. - `Dash`: `LineDash` — Draws the line `LineDash.Dashed` or `LineDash.Dotted` instead of solid, e.g. for a forecast next to the actual values or a target. The legend swatch shows the same pattern. Default solid. - `Highlight`: `PointHighlight` — Points to mark with a dot, e.g. `PointHighlight.Last | PointHighlight.Max`, or `PointHighlight.All` for a dot on every point (sparse data: shows where the values are; not drawn beyond 1000 visible points). Default none. - `MarkerSize`: `double?` — Diameter of the `LineSeries.Highlight` dots in pixels. Default: from the line width (for a 2 px line, 5 px; 7 px with `PointHighlight.All`). - `Sort`: `ChartSort?` — Category x: orders the categories by this series' values (after `Aggregate`, e.g. counts), largest first with `ChartSort.Descending`. The first series with a sort decides for the whole chart. Time and number x ignore it. - `Error`: `double?` — Error bars: the same plus-or-minus amount for every point, e.g. 2.5. - `ErrorValue`: `Func?` — Error bars: each item's plus-or-minus amount, e.g. `m => m.StdDev`; null for none. Items combined into one point take the average. - `ErrorLowValue`: `Func?` — Error bars: the low end of each item's error bar (a value, e.g. a confidence interval's lower bound); use with `ErrorBarSeriesBase.ErrorHighValue`. Items combined into one point take the lowest. - `ErrorHighValue`: `Func?` — Error bars: the high end of each item's error bar; use with `ErrorBarSeriesBase.ErrorLowValue`. Items combined into one point take the highest. #### `` (`AreaSeries`) Area series, filled down to zero. - `Bucket`: `TimeBucket?` — Time x: one point per bucket (e.g. `TimeBucket.Day` or `TimeBucket.Month`, on the items' wall-clock time, or in the chart's `TimeZone` when set) at the bucket's start, combining its items with `Aggregate` (average when not set) or `YAggregate`. `TimeBucket.Auto` picks the bucket from the data's time span (about 50 buckets). - `Curve`: `CurveType` — Shape of the top edge: Linear, Monotone (smooth, no overshoot) or Step. - `StrokeWidth`: `double` = `2` — Width of the top line in pixels. Default 2. - `Dash`: `LineDash` — Draws the top line `LineDash.Dashed` or `LineDash.Dotted` instead of solid; the fill stays. Default solid. - `Highlight`: `PointHighlight` — Points to mark with a dot, e.g. `PointHighlight.Last`, or `PointHighlight.All` for every point. Default none. - `MarkerSize`: `double?` — Diameter of the `AreaSeries.Highlight` dots in pixels. Default: from the line width. - `Sort`: `ChartSort?` — Category x: orders the categories by this series' values (after `Aggregate`, e.g. counts), largest first with `ChartSort.Descending`. The first series with a sort decides for the whole chart. Time and number x ignore it. #### `` (`ScatterSeries`) Scatter series: a marker per point, for how two measures relate, e.g. delivery distance against delivery time. With `ScatterSeries.SizeValue` it is a bubble chart: a third measure sets each marker's size. The tooltip shows the point nearest the pointer. - `MarkerSize`: `double?` — Marker diameter in pixels. Default 5. Bubbles: the diameter of the largest bubble; default from the chart size. - `TrendLine`: `bool` — Draw a dashed least-squares trend line through the points. - `SizeValue`: `Func?` — Each item's size, e.g. `c => c.Population`, which makes a bubble chart: a bubble's area is proportional to its size, and all bubble series in a chart share one size scale. Sizes of zero or less, or null, are not drawn. Aggregated points take the sum of their items' sizes. - `SizeName`: `string?` — Bubbles: what the size is, shown with it in the tooltip, e.g. "Population". Default: "Size" in the chart's language. - `SizeFormat`: `string?` — Bubbles: .NET format string for the size in tooltips, e.g. "0 M". - `Error`: `double?` — Error bars: the same plus-or-minus amount for every point, e.g. 2.5. - `ErrorValue`: `Func?` — Error bars: each item's plus-or-minus amount, e.g. `m => m.StdDev`; null for none. Items combined into one point take the average. - `ErrorLowValue`: `Func?` — Error bars: the low end of each item's error bar (a value, e.g. a confidence interval's lower bound); use with `ErrorBarSeriesBase.ErrorHighValue`. Items combined into one point take the lowest. - `ErrorHighValue`: `Func?` — Error bars: the high end of each item's error bar; use with `ErrorBarSeriesBase.ErrorLowValue`. Items combined into one point take the highest. #### `` (`HeatmapSeries`) One row of a heatmap: its x values are the columns, its y values the cell colors (more opaque for higher values). Add one per row, e.g. per weekday; the Name labels the row. All rows share one color scale (the first row's Color, Format, Max, Midpoint, BelowColor and ColorBands). For stepped colors (e.g. green, yellow, red ranges) set `ColorBands`: each cell takes the solid color of its band and the legend lists the bands. `ColorValue` gives a cell its own solid color. - `Max`: `double?` — The value that gets the full color (e.g. 100 for percentages). Default: the highest value. - `Midpoint`: `double?` — Colors diverge from this value, e.g. 0 for changes or 20 for °C: values above it take the series color, values below it `HeatmapSeries.BelowColor`, stronger the further they are from it. Default: one color, stronger for higher values. - `BelowColor`: `string?` — With a `HeatmapSeries.Midpoint`: the color of values below it. Default `--rio-negative`. #### `` (`RangeAreaSeries`) Range area: a band between a low and a high value per x, e.g. the lowest and highest daily revenue around its average. Usually drawn behind a line; the tooltip shows "low – high". - `LowValue`: `Func?` — The low end of each point. - `HighValue`: `Func?` — The high end of each point (the same as `YValue`). - `Curve`: `CurveType` — Line shape of the band's edges: Linear or Monotone. #### `` (`BoxPlotSeries`) Box plot: the spread of values per x, e.g. supply temperatures per unit. Give the raw values (`XValue` and `YValue`, one item per value: items with the same x form a box, with quartiles, whiskers at 1.5 × the box length and outliers computed here), or boxes computed elsewhere (`BoxPlotSeries.Q1Value`, `BoxPlotSeries.Q3Value` and the others, one item per box). Several box series sit side by side like grouped bars. - `LowValue`: `Func?` — Precomputed boxes: the lower whisker end. - `Q1Value`: `Func?` — Precomputed boxes: the lower quartile. With `BoxPlotSeries.Q3Value`, each item is one box. - `MedianValue`: `Func?` — Precomputed boxes: the median (the same as `YValue`). - `Q3Value`: `Func?` — Precomputed boxes: the upper quartile. - `HighValue`: `Func?` — Precomputed boxes: the upper whisker end. - `OutliersValue`: `Func?>?` — Precomputed boxes: values beyond the whiskers, drawn as dots (optional). - `CountValue`: `Func?` — Precomputed boxes: how many values the box summarizes, for the tooltip (optional). #### `` (`CandlestickSeries`) Candlestick: how a value moved within each period: a wick from low to high and a body from open to close, lightly filled when it rose and solid when it fell, in the series color (or green and red with `CandlestickSeries.DirectionColors`). Give raw readings (`XValue` and `YValue`, one item per reading) with a `CandlestickSeries.Bucket` such as an hour or a day, or candles computed elsewhere (`CandlestickSeries.OpenValue`, `CandlestickSeries.HighValue`, `CandlestickSeries.LowValue` and `CandlestickSeries.CloseValue`, one item per period). When zoomed out, candles too narrow to see merge into wider ones. - `Bucket`: `TimeBucket?` — Raw readings: the period of each candle, e.g. `TimeBucket.Hour` (on the readings' wall-clock time, or in the chart's `TimeZone` when set); `TimeBucket.Auto` picks it from the data's time span (about 50 candles). - `DirectionColors`: `bool` — Color candles by direction, rising in `--rio-positive` and falling in `--rio-negative` (green and red), with the change in percent in the tooltip, as for prices. Off (default): the series color, with a light fill for rising and a solid fill for falling candles. - `OpenValue`: `Func?` — Precomputed candles: the period's first value. - `HighValue`: `Func?` — Precomputed candles: the highest value. - `LowValue`: `Func?` — Precomputed candles: the lowest value. - `CloseValue`: `Func?` — Precomputed candles: the period's last value (the same as `YValue`). #### `` (`BarSeries`) Bar series. Several bar series in one chart are grouped side by side. - `Bucket`: `TimeBucket?` — Time x: one point per bucket (e.g. `TimeBucket.Day` or `TimeBucket.Month`, on the items' wall-clock time, or in the chart's `TimeZone` when set) at the bucket's start, combining its items with `Aggregate` (average when not set) or `YAggregate`. `TimeBucket.Auto` picks the bucket from the data's time span (about 50 buckets). - `MaxBarWidth`: `double?` — The widest a bar may be, in pixels. Default: as wide as its band allows, but a group of bars never takes more than a fifth of the plot (as with four categories), so a lone bar does not fill the chart. Bars stay centered on their band. - `Sort`: `ChartSort?` — Category x: orders the categories by this series' values (after `Aggregate`, e.g. counts), largest first with `ChartSort.Descending`. The first series with a sort decides for the whole chart. Time and number x ignore it. - `Error`: `double?` — Error bars: the same plus-or-minus amount for every point, e.g. 2.5. - `ErrorValue`: `Func?` — Error bars: each item's plus-or-minus amount, e.g. `m => m.StdDev`; null for none. Items combined into one point take the average. - `ErrorLowValue`: `Func?` — Error bars: the low end of each item's error bar (a value, e.g. a confidence interval's lower bound); use with `ErrorBarSeriesBase.ErrorHighValue`. Items combined into one point take the lowest. - `ErrorHighValue`: `Func?` — Error bars: the high end of each item's error bar; use with `ErrorBarSeriesBase.ErrorLowValue`. Items combined into one point take the highest. #### `` (`HistogramSeries`) Histogram: how values are distributed, e.g. response times. Give one item per value: `XValue` is the value to count (a number). The values are counted in equal-width bins with round edges (`HistogramSeries.BinWidth` or `HistogramSeries.BinCount`, picked from the data when not set), drawn as bars that touch. The tooltip shows the bin's range and count; a click gives its items. Several histograms on one chart overlay, see-through. - `BinWidth`: `double?` — The width of each bin, in x units (e.g. 5 for bins of 5 ms). Default: a nice width picked from the data. - `BinCount`: `int?` — About how many bins, when `HistogramSeries.BinWidth` is not set (the width is rounded to a nice number). Default: picked from the data. #### `` (`RangeBarSeries`) Range bars (a timeline): a bar from each item's `RangeBarSeries.StartValue` to its `RangeBarSeries.EndValue` (times, or numbers) in the row `RangeBarSeries.RowValue` gives, e.g. a project schedule (one row per task) or states over time (one row per machine). Rows are listed top to bottom in the order they first appear. Several range bar series share the rows and the time axis, so a state timeline is one series per state (running, idle, stopped), each with its color and legend entry. The tooltip shows the row, start, end and duration. Cannot be mixed with other series types; x lines and bands (`Annotations`) mark times such as "now". - `RowValue`: `Func?` — The row of each item, e.g. `t => t.Machine`. Default: every bar in one row, named after the series. - `StartValue`: `Func?` — Where each bar starts: a DateTime, DateTimeOffset, DateOnly or number. Items without a start are left out. - `EndValue`: `Func?` — Where each bar ends, of the same kind as `RangeBarSeries.StartValue`. A missing end, or one before the start, draws nothing. #### `` (`WaterfallSeries`) Waterfall: how a start value becomes an end value, e.g. a month's result from revenue through costs. Each item is a change (`YValue`), drawn as a bar from the running total before it to the one after: in `--rio-positive` (green) when it rises and `--rio-negative` (red) when it falls. Items marked with `WaterfallSeries.IsTotal` are totals: a bar from zero to the running total, in the series color. Thin lines carry each bar's end over to the next. The tooltip shows the change and the running total after it. - `IsTotal`: `Func?` — Marks the totals, e.g. `s => s.IsTotal`: a total shows the running total so far, so its own `YValue` is ignored (it can return null). Totals in between (a subtotal) keep the running total going. Aggregated points are totals when their first item is. #### `` (`FunnelSeries`) Funnel: one segment per stage, top to bottom in the order of the items, each as wide at its top as its share of the largest stage and narrowing to the next, in a color of its own (one color when `Color` is set; `ColorValue` colors a stage). `XValue` is the stage, `YValue` how many reached it. Each stage shows its value and its share of the stage before (`DataLabels="false"` hides them), with its name in a column on the left; the tooltip adds the share of the first stage. One funnel per chart; it cannot be mixed with other series. No parameters of its own. #### `` (`CalendarSeries`) Calendar heatmap: a square per day, weeks as columns and weekdays as rows, colored by the day's value like a heatmap (one hue, stronger for higher values; `Midpoint` makes it diverge). `XValue` is a date or time; items on the same day (in the chart's `TimeZone` when set) add up, or combine with `Aggregate`, and without a `YValue` each day counts its items. Up to a year of data is one block from the first day to the last; longer data is one block per year. The week starts on the chart culture's first day. One calendar per chart; it cannot be mixed with other series. - `Max`: `double?` — The value that gets the full color (e.g. 100 for percentages). Default: the highest value. - `Midpoint`: `double?` — Colors diverge from this value, e.g. 0 for changes or 20 for °C: days above it take the series color, days below it `CalendarSeries.BelowColor`, stronger the further they are from it. Default: one color, stronger for higher values. - `BelowColor`: `string?` — With a `CalendarSeries.Midpoint`: the color of days below it. Default `--rio-negative`. #### `` (`PieSeries`) Pie: one slice per category (the x value), sized by its share of the total. Several pie series in one chart are drawn as nested rings, the first one outermost. - `InnerRadius`: `double?` — Inner radius as a fraction of the outer radius; above 0 makes a donut. Default: 0 for one pie, 0.4 when several pie series are drawn as rings. - `StartAngle`: `double?` — Start angle in degrees, clockwise from 12 o'clock. Default 0. - `EndAngle`: `double?` — End angle in degrees. Default: a full circle. 180 with StartAngle -90 makes a half donut. - `GroupSmallSlices`: `double?` — Group slices below this share of the total (e.g. 0.03) into one "Other" slice. #### `` (`DonutSeries`) A pie with a hole (inner radius 0.6 by default); shows the total in the middle. - `InnerRadius`: `double?` = `0.6` — Inner radius as a fraction of the outer radius; above 0 makes a donut. Default: 0 for one pie, 0.4 when several pie series are drawn as rings. - `StartAngle`: `double?` — Start angle in degrees, clockwise from 12 o'clock. Default 0. - `EndAngle`: `double?` — End angle in degrees. Default: a full circle. 180 with StartAngle -90 makes a half donut. - `GroupSmallSlices`: `double?` — Group slices below this share of the total (e.g. 0.03) into one "Other" slice. #### `` (`RadarSeries`) Radar: one spoke per category (x), clockwise from 12 o'clock, and a closed shape per series through its values. The radius is a linear scale from zero shared by all spokes; set the chart's `YAxis` Min and Max to fix it (e.g. 0 to 100 for percentages). Several radar series compare, e.g. two products' test scores against their class average. Cannot be mixed with other series types. No parameters of its own. #### `` (`TreemapSeries`) Treemap: rectangles sized by value, nested by group, for how a total splits into many parts. `XValue` is each item's path from the outermost group, e.g. `"Europe/Sweden/Stockholm"` (see `TreemapSeries.PathSeparator`), or its name with `TreemapSeries.ParentValue`. A group's value is the sum of its items. Colors and legend items follow the top-level groups. Zero and negative values are left out. Cannot be mixed with other series types. - `ParentValue`: `Func?` — The name of each item's group, matching another item's `XValue` (null or unknown: a top-level item). Builds the paths from a parent-child list, e.g. cities with their countries and countries with their regions; names must then be unique. - `PathSeparator`: `string?` — What separates the groups in an `XValue` path. Default "/". - `GroupSmallItems`: `double?` — Group items smaller than this share of their group (e.g. 0.03) into one "Other" item per group. - `VisibleLevels`: `int?` — How many levels to draw at once below the group shown, e.g. 2 for continents and their countries; deeper groups show as one cell with their total and open on a click (drill-down). Null: all levels. The data keeps every level either way. #### `` (`GaugeSeries`) A gauge: a value on a scale from `GaugeSeries.Min` to `GaugeSeries.Max`, drawn as an arc with the value in the middle. Give one `GaugeSeries.Value`, or Items with `YValue` (and `XValue` for each gauge's label) for a row of gauges. `ColorBands` color the scale's ranges (and the value, when it is in one); `GaugeSeries.Target` marks a target. - `Value`: `double?` — The value to show; used instead of Items when set. Its label is `Name`. A chart without items still needs a `TItem`, e.g. ``. - `Min`: `double?` — The value at the start of the scale. Default 0 (or a nice value below a negative value). - `Max`: `double?` — The value at the end of the scale, e.g. 100 for percentages. Default: a nice value above the largest. - `Target`: `double?` — A target value, marked across the scale and given in the tooltip. - `InnerRadius`: `double?` — Inner radius as a fraction of the outer radius. Default 0.8. - `StartAngle`: `double?` — Start angle in degrees, clockwise from 12 o'clock. Default -120 (with `GaugeSeries.EndAngle` 120); -90 and 90 make a half circle. - `EndAngle`: `double?` — End angle in degrees. Default 120. #### `` (`BulletSeries`) Bullets: each value as a bar on a horizontal scale from `BulletSeries.Min` to `BulletSeries.Max`, in a row of its own, over the scale's ranges (`ColorBands`, tinted) with a target mark. Give one `BulletSeries.Value`, or Items with `XValue` (each row's label) and `YValue`. Each series has its own scale, so measures in different units (revenue, margin, satisfaction) can be one series each in the same chart. - `Value`: `double?` — The value to show; used instead of Items when set. Its label is `Name`. A chart without items still needs a `TItem`, e.g. ``. - `Min`: `double?` — The value at the start of the scale. Default 0 (or a nice value below a negative value). - `Max`: `double?` — The value at the end of the scale. Default: a nice value above the largest value and target. - `Target`: `double?` — A target for every row, marked across it and given in the tooltip. `BulletSeries.TargetValue` gives one per item. - `TargetValue`: `Func?` — Each item's target, e.g. `k => k.Goal`; null for none (then `BulletSeries.Target`). Items combined into one row (`Aggregate`) get the same aggregate of their targets, or the average without one. #### `` (`DumbbellSeries`) Dumbbells: two values per category joined by a line, e.g. before and after, or plan and actual. `DumbbellSeries.FromValue` is the first value (a hollow dot), `YValue` the second (a filled dot). `XValue` is the category; with `RioChart.Horizontal` the categories are rows, the classic layout. The tooltip shows "58 → 66 (+8)". - `FromValue`: `Func?` — Each item's first value (before, plan), e.g. `c => c.LastYear`; null for none. Items combined into one point (`Aggregate`) get the same aggregate of their first values, or the average without one. #### `` (`RadialBarSeries`) Radial bars: one circular track per category, filled up to its value. - `Max`: `double?` — The value of a full track, e.g. 100 for percentages. Default: a nice value above the largest. - `InnerRadius`: `double?` — Inner radius as a fraction of the outer radius. Default 0.3. - `StartAngle`: `double?` — Start angle in degrees, clockwise from 12 o'clock. Default 0. - `EndAngle`: `double?` — End angle in degrees. Default 270. #### `` (`MapSeries`) A world map: each country colored by its value, one hue that gets stronger with the value (a choropleth). `XValue` is the country: an ISO 3166 alpha-2 or alpha-3 code (`"SE"`, `"SWE"`) or English name; `YValue` its value. Several items for one country add up. Clicking a country zooms into it (see `RioChart.TreemapPath`), with a path bar back to the world. Combine with `MapBubbleSeries` for places within the countries. Cannot be mixed with other series types. - `Max`: `double?` — The value given the strongest color, e.g. 100 for percentages. Default: the largest value. - `Midpoint`: `double?` — Colors diverge from this value, e.g. 0 for growth: countries above it take the series color, those below it `MapSeries.BelowColor`, stronger the further they are from it. Default: one color, stronger for higher values. - `BelowColor`: `string?` — With a `MapSeries.Midpoint`: the color of values below it. Default `--rio-negative`. #### `` (`MapBubbleSeries`) Bubbles on a world map: a circle at each item's `MapBubbleSeries.LatitudeValue` and `MapBubbleSeries.LongitudeValue`, its area proportional to `YValue` (e.g. users per city). `XValue` names the place in the tooltip. Items without a place, and values of zero or less, are not drawn. Draws on its own or on top of a `MapSeries`. - `LatitudeValue`: `Func?` — Each item's latitude in degrees north, e.g. `c => c.Latitude`. - `LongitudeValue`: `Func?` — Each item's longitude in degrees east, e.g. `c => c.Longitude`. - `MarkerSize`: `double?` — The diameter of the largest bubble in pixels. Default: from the map's size. - `GroupByCountry`: `bool?` — On the world map, one bubble per country with the sum of its places, so cities close together do not pile up; zoomed into a country, each place. Default true. #### Parameters of every annotation (`AnnotationBase`) Every annotation component below takes these, plus its own. - `Id`: `string?` — Optional id, reported by `RioChart.OnAnnotationClick` and `OnAnnotationChanged`. - `YAxisId`: `string?` — Vertical axis id for Y annotations, points and callouts. Default: the primary axis. - `Label`: `string?` — Text shown next to the annotation. - `Color`: `string?` — CSS color. Default: the muted annotation color (`--rio-annotation`). - `ExpandsDomain`: `bool?` — Grow the axis range to include the annotation. Default: yes, except for bands. - `Layer`: `AnnotationLayer?` — Draw below or above the series. Default: bands below, the rest above. #### `` (`ReferenceLine`) A horizontal (Axis="Y", default) or vertical (Axis="X") line, e.g. a target or "today". With `ReferenceLine.Draggable` the user can move it; bind the value with `@bind-Value`. `` - `Value`: `TValue` — Position in data units. - `Axis`: `AnnotationAxis` = `AnnotationAxis.Y` — X for a vertical line; Y (default) for a horizontal one. - `LabelPosition`: `LabelPosition?` — Where the label sits along the line. Default: End. - `Draggable`: `bool` — Let the user drag the line; the new value goes to `ReferenceLine.ValueChanged`. - `ValueChanged`: `EventCallback` — Called with the new value when the user drags the line. #### `` A range on the y axis (an acceptable zone) or the x axis (a period such as a fault). `` - `From`: `object?` — Start of the range: a number, DateTime, DateTimeOffset, DateOnly or category name. - `To`: `object?` — End of the range, in the same units as `ReferenceBand.From`. - `Axis`: `AnnotationAxis` = `AnnotationAxis.Y` — X for a time period or category range; Y (default) for a value range. - `LabelPosition`: `LabelPosition?` — Where the label sits. Default: Start. #### `` A marker at a data point with an optional label above it, e.g. "Alarm". `` - `X`: `object?` — The x value: a number, DateTime, DateTimeOffset, DateOnly or category name. - `Y`: `double` — The y value on the annotation's vertical axis. #### `` A text box with a connector line to a data point. `` - `X`: `object?` — The x value of the point: a number, DateTime, DateTimeOffset, DateOnly or category name. - `Y`: `double` — The y value of the point on the annotation's vertical axis. - `OffsetX`: `double?` — Horizontal offset of the box from the point in pixels (negative: to the left). Default 24. - `OffsetY`: `double?` — Vertical offset of the box from the point in pixels (negative: up). Default -32. ### Types used by parameters #### `LegendClickingEventArgs` (class, RioCharts.Blazor) Raised before a legend click shows or hides its series. Set `LegendClickingEventArgs.Cancel` to keep it as it is, e.g. to do something else instead (show only that series, open details). - `SeriesId`: `string` — The clicked item's series id (or category, for pies). - `Name`: `string` — The clicked item's name. - `Visible`: `bool` — Whether the series is about to be shown (true) or hidden (false). - `Cancel`: `bool` — Set to true to leave the series as it is. #### `ExportFormats` (enum, RioCharts.Blazor) The formats offered in the download menu (`Exportable`). - `None` — No download menu. - `Png` — PNG image. - `Svg` — SVG document. - `Csv` — The data as CSV. - `All` — All formats. Flags: combine values with `|`. #### `ChartExportingEventArgs` (class, RioCharts.Blazor) Raised when the user picks a format in the download menu, before the file is saved. Change `ChartExportingEventArgs.FileName` or the options, or set `ChartExportingEventArgs.Cancel` and handle the export yourself (e.g. upload it) with `ChartExportingEventArgs.GetPngAsync`, `ChartExportingEventArgs.GetSvgAsync` or `ChartExportingEventArgs.GetCsv`. The content is made only when one of those is called, so a handler that only renames costs nothing. - `Format`: `ExportFormat` (read-only) — The format the user picked. - `FileName`: `string` — The file name with extension; change it to save under another name. - `ImageOptions`: `ChartImageOptions` — Options for PNG and SVG (used by the download and by GetPngAsync/GetSvgAsync). - `CsvOptions`: `CsvOptions?` — Options for CSV; null: the defaults, with the x axis title as the x header. - `Cancel`: `bool` — Set to true to skip the browser download (after handling the export yourself, or to block it). - `Task GetPngAsync()` — The chart as PNG bytes, with `ChartExportingEventArgs.ImageOptions`. - `Task GetSvgAsync()` — The chart as an SVG document, with `ChartExportingEventArgs.ImageOptions`. - `string GetCsv()` — The data as CSV, with `ChartExportingEventArgs.CsvOptions`. #### `AxisOptions` (record, RioCharts.Core) Settings for one axis: title, range, scale, label format and grid lines. - `Id`: `string?` — Axis id that series and annotations refer to (vertical axes only). The primary vertical axis defaults to "y". - `Title`: `string?` — Axis title. - `Color`: `string?` — Vertical axes: CSS color of the tick labels and title, e.g. to show which axis belongs to which line. Null: the muted axis color (or the series color with `AxisOptions.SeriesColor`). - `SeriesColor`: `bool` — Vertical axes: color the tick labels and title like the first visible series on the axis, so with one axis per series each axis matches its line. `AxisOptions.Color` wins when both are set. - `TooltipFormat`: `string?` — X axis: .NET format string for the x value in tooltip headers only, e.g. "HH:mm" or "d MMM HH:mm". Unlike `AxisOptions.Format` it leaves the axis labels alone, and on a time axis it also leaves out the time zone offset that tooltips otherwise add when the chart's zone differs from the viewer's. Null: automatic. - `Min`: `double?` — Fixed minimum. When null it comes from the data. - `Max`: `double?` — Fixed maximum. When null it comes from the data. - `Scale`: `ScaleType` — Scale type. Auto picks from the data: times give a time axis, numbers a linear axis, strings a band axis. - `Format`: `string?` — .NET format string for labels, e.g. "P0", "C0" or "yyyy-MM-dd". Null for automatic formatting. On a value axis, series without a format of their own also use it for their tooltips and data labels (a series' Format wins). Ticks are never closer than the format can tell apart: with "#,0" they are whole numbers. - `LabelFormatter`: `Func?` — A function that writes the labels of a numeric axis, e.g. bytes as "1.5 MB": used instead of `AxisOptions.Format`. Like Format, it also writes the tooltips and data labels of series on the axis that have no format of their own, and the screen reader text. Ticks stay on round steps (1, 2 or 5 times a power of ten), never closer than the function can tell apart from zero. Not used on time or category axes, and not part of JSON definitions. - `TickBase`: `double?` — Numeric axes: the base of the tick steps' unit. With 1024, for bytes, a step is 1, 2 or 5 × a power of ten of the largest power of 1024 below it (e.g. 20 × 1024² bytes), so with a 1024-based `AxisOptions.LabelFormatter` the ticks read 20 MB, 40 MB, 60 MB instead of 47.7 MB, 95.4 MB. Null (or 1 and below): plain powers of ten. Not used on log axes. - `GridLines`: `bool?` — Draw grid lines. Null uses the default: on for the primary vertical axis, off otherwise. - `LabelRotation`: `double?` — Angle of category labels on the x axis, in degrees from 0 to 90; they slope down to the left. Null (the default): horizontal when every label fits, otherwise 45 degrees. 0 keeps them horizontal and shows every n-th label when they do not all fit. Rotated labels still thin out when even they overlap. - `Position`: `AxisPosition` — Side of a vertical axis. Auto: the primary axis on the left, additional axes on the right. - `Stacking`: `StackMode` — How stacked series on a vertical axis add up. Percent: each stack fills the axis (0–100 %), so the series show their share per x value; line, area and bar series without a stack name are stacked together. #### `LegendOptions` (record, RioCharts.Core) Legend settings: when to show it and where. - `Mode`: `LegendMode` — Auto shows the legend only when there is more than one series. - `Position`: `LegendPosition` — Where the legend sits. Default Top. - `Sizes`: `bool?` — Bubble charts: a size legend right of the plot, with circles for a few round sizes. Null: shown when the chart is at least 360 px wide and has room for a legend. #### `TooltipOptions` (record, RioCharts.Core) Tooltip settings. - `Enabled`: `bool` = `true` — Show a tooltip and crosshair when hovering the plot. - `Shared`: `bool` = `true` — True: one tooltip per x position listing every series. False: only the nearest point. #### `TooltipPoint` (record, RioCharts.Blazor) One point in a tooltip: what `TooltipValue`, `TooltipHeader` and the rows of a `TooltipTemplate` get. - `SeriesId`: `string` — Id of the series. - `SeriesName`: `string` — Name of the series (as in the legend). - `Color`: `string` — The series color as a CSS color, e.g. for a dot in a template. - `Index`: `int` — Index into the series' input (items list or columns); the first item's when the series aggregates; -1 for a grouped "Other" slice. - `X`: `object?` — The x value: a number, DateTime (DateTimeOffset with a display time zone) or category name. - `Y`: `double` — The y value (the series' own value, also when stacked); NaN for a gap or an "Other" slice. - `XText`: `string` — The x value as the tooltip header shows it by default (the category for pie slices). - `ValueText`: `string` — The value as the tooltip shows it: formatted with the series' `Format`, or the series' `TooltipValue`. - `Item`: `TItem` — The input item (the first of the group when the series aggregates), or default for columnar data. - `Items`: `IReadOnlyList` — All input items behind the point: the group when the series aggregates; empty for columnar data. - `new TooltipPoint(string SeriesId, string SeriesName, string Color, int Index, object? X, double Y, string XText, string ValueText)` — One point in a tooltip: what `TooltipValue`, `TooltipHeader` and the rows of a `TooltipTemplate` get. #### `TooltipContext` (record, RioCharts.Blazor) What a `TooltipTemplate` renders: the hovered x and one point per listed series. - `Header`: `string` — The default header text (the formatted x, or `TooltipHeader`); the series name for nested pies. - `X`: `object?` — The hovered x value (the first point's). - `Points`: `IReadOnlyList>` — The listed points in tooltip order: one per series for a shared tooltip, else one. - `new TooltipContext(string Header, object? X, IReadOnlyList> Points)` — What a `TooltipTemplate` renders: the hovered x and one point per listed series. #### `Annotation` (record, RioCharts.Core) A reference line or band. Values are in data units of the axis: numbers, times (DateTime, DateTimeOffset, DateOnly or an ISO 8601 string) or category names. - `Id`: `string?` — Optional id, reported in click events. - `Type`: `AnnotationType` — Kind of annotation: a line, a band, a point or a callout. Default Line. - `Axis`: `AnnotationAxis` = `AnnotationAxis.Y` — Axis the value(s) refer to: Y for a horizontal line or band, X for a vertical one. - `YAxisId`: `string?` — Vertical axis id for Y annotations. Null uses the primary axis. - `Value`: `object?` — Position of a line: a number, a time (ISO 8601) or a category. - `From`: `object?` — Start of a band. - `To`: `object?` — End of a band. - `X`: `object?` — Point and callout: the x value (a number, a time or a category). - `Y`: `object?` — Point and callout: the y value on the annotation's vertical axis. - `OffsetX`: `double?` — Callout: horizontal offset of the text box from the point, in pixels. Default 24. - `OffsetY`: `double?` — Callout: vertical offset of the text box from the point, in pixels (negative is up). Default -32. - `Draggable`: `bool` — Line: the user can drag it to a new value (e.g. to edit a threshold); the chart reports the new value. - `Label`: `string?` — Optional label. - `LabelPosition`: `LabelPosition?` — Where the label sits along the line or band. Default: End for lines, Start for bands. - `Color`: `string?` — CSS color. Null uses the muted annotation color. - `ExpandsDomain`: `bool?` — Whether the axis range grows to include the annotation. Default: true for lines, false for bands. - `Layer`: `AnnotationLayer?` — Draw below or above the series. Default: bands below, lines above. #### `UnspecifiedTimes` (enum, RioCharts.Core.Data) How times without a zone (DateTime with Kind Unspecified, DateOnly, plain strings) are read when a display zone is set. - `Utc` — They are UTC. - `DisplayZone` — They are wall-clock times in the display zone. #### `ChartTexts` (record, RioCharts.Core) The texts a chart shows or reads out itself: empty states, the legend and axis names for screen readers, the chart description, "Reset zoom", the download menu and the keyboard help. Your own texts (titles, series names, formats) are not here. 87 properties: `Chart`, `NoData`, `ChartFailed`, `AllSeriesHidden`, `AllSlicesHidden`, `Other`, `Total`, `Size`, `ResetZoom`, `Download`, `DownloadFormat`, `DownloadChart`, `ChartRole`, `Legend`, `XAxis`, `YAxis`, `AxisRange`, `SeriesPoints`, `Summary`, `SummaryTitled`, `SeriesValues`, `LowestHighest`, `Trend`, `Rising`, `Falling`, `Stable`, `ValueRange`, `LastValue`, `HistogramPeak`, `RangeBarSummary`, `DurationUnits`, `BoxMax`, `BoxUpperQuartile`, `BoxMedian`, `BoxLowerQuartile`, `BoxMin`, `BoxCount`, `BoxOutliers`, `CandleOpen`, `CandleHigh`, `CandleLow`, `CandleClose`, `CandleChange`, `NoDataShort`, `PieChart`, `DonutChart`, `RadialBarChart`, `GaugeChart`, `BulletChart`, `FunnelChart`, `FunnelOfFirst`, `FunnelOfPrevious`, `CalendarChart`, `CalendarDays`, `Target`, `RadarChart`, `Treemap`, `ShareOfGroup`, `ShareOfTotal`, `TreemapAll`, `TreemapShow`, `TreemapPathLabel`, `Map`, `MapWorld`, `TreemapLeftOut`, `PolarItems`, `PolarNoData`, `LegendHidden`, `LegendNoData`, `More`, `KeysPoints`, `KeysPointsAndSeries`, `KeysSlices`, `KeysZoom`, `KeysSelect`, `KeysLeave`, `Position`, `Keys`, `English`, `Swedish`, `Norwegian`, `Danish`, `Finnish`, `German`, `French`, `Spanish`, `BuiltIn`. - `static void Register(string culture, ChartTexts texts)` — Adds or replaces the texts for a culture or language ("pl", "pt-BR"), for every chart in the app. Call it at startup. Takes precedence over the built-in languages. - `static ChartTexts For(CultureInfo? culture)` — The texts for a culture: registered ones, then built-in ones, trying the culture and its parents (sv-FI, then sv); English when none match. Null: the current UI culture. - `static ChartTexts From(Func lookup, ChartTexts? fallback = null)` — Texts from a lookup by key (see `ChartTexts.Keys`), e.g. resx resources or an IStringLocalizer: `ChartTexts.From(key => localizer[key] is { ResourceNotFound: false } s ? s.Value : null)`. Keys it returns null or empty for keep the text from `fallback` (default English). - `string Fill(string key, IFormatProvider? provider, object?[] args)` — Fills in this set's template for `key` (a property name, see `ChartTexts.Keys`) with `args`, the way charts do. Never throws: a template that cannot be filled falls back to the English one. #### `LegendClickEventArgs` (record, RioCharts.Blazor) Raised when a legend item is clicked (the series has already been toggled). - `SeriesId`: `string` - `Name`: `string` - `Visible`: `bool` - `new LegendClickEventArgs(string SeriesId, string Name, bool Visible)` — Raised when a legend item is clicked (the series has already been toggled). #### `PointClickEventArgs` (record, RioCharts.Blazor) Raised when a point or bar is clicked. - `SeriesId`: `string` - `SeriesName`: `string` - `Item`: `TItem` — The input item (the first of the group when the series aggregates), or default for columnar data. - `Index`: `int` — Index into the series' input (items list or columns); the first item's when the series aggregates. - `X`: `object?` — The x value: a number, DateTime or category name. - `Y`: `double` — The y value (the series' own value, also when stacked). - `Items`: `IReadOnlyList` — All input items behind the point: the group when the series aggregates (`Aggregate` or `YAggregate`), else just `PointClickEventArgs.Item`; empty for columnar data. - `new PointClickEventArgs(string SeriesId, string SeriesName, TItem Item, int Index, object? X, double Y)` — Raised when a point or bar is clicked. #### `AnnotationClickEventArgs` (record, RioCharts.Blazor) Raised when a reference line or band is clicked. - `AnnotationId`: `string` — The annotation's `Id`. - `Label`: `string?` — The annotation's label. - `new AnnotationClickEventArgs(string AnnotationId, string? Label)` — Raised when a reference line or band is clicked. #### `AnnotationChangedEventArgs` (record, RioCharts.Blazor) Raised when the user has dragged a reference line to a new value. - `AnnotationId`: `string` — The annotation's `Id`. - `Label`: `string?` — The annotation's label. - `Value`: `object` — The new value: DateTime on time axes, else double. - `new AnnotationChangedEventArgs(string AnnotationId, string? Label, object Value)` — Raised when the user has dragged a reference line to a new value. #### `ChartRange` (record, RioCharts.Blazor) A range on the x axis (the visible window when zoomed). Values are `DateTime` on time axes and `Double` on numeric axes; DateTimeOffset, DateOnly and numbers are accepted as input. - `Min`: `object` — Start of the range. - `Max`: `object` — End of the range. - `new ChartRange(object Min, object Max)` — A range on the x axis (the visible window when zoomed). Values are `DateTime` on time axes and `Double` on numeric axes; DateTimeOffset, DateOnly and numbers are accepted as input. - `static ChartRange Of(DateTime min, DateTime max)` — A range on a time axis. - `static ChartRange Of(double min, double max)` — A range on a numeric axis. #### `ZoomChangingEventArgs` (class, RioCharts.Blazor) Raised before a zoom or pan is applied. Change `ZoomChangingEventArgs.Range` to clamp it, or set `ZoomChangingEventArgs.Cancel` to keep the current view. `ZoomChangingEventArgs.Range` is null for a reset. - `Range`: `ChartRange?` — The range about to be shown; null when the zoom is reset. - `Cancel`: `bool` — Set to true to keep the current view. #### `SeriesLayer` (enum, RioCharts.Blazor) Where the chart draws its series. - `Svg` — SVG elements (default): crisp, styleable, one path per series. - `Canvas` — A canvas over the SVG: no DOM per series, for many or dense series. Axes, labels and annotations stay SVG. #### `MapProjection` (enum, RioCharts.Core) How a map draws the round world flat. - `EqualEarth` — Equal Earth: equal-area, so every country keeps its true relative size; the outline of the world is rounded. - `Mercator` — Mercator, as on web maps: familiar shapes on a rectangle, but areas grow toward the poles; cut at ±85° latitude. #### `ChartDefinition` (record, RioCharts.Core) The chart model. Plain, serializable data: Razor components and (later) JSON definitions both compile to this. Data is not part of the definition; it is passed separately by series id. - `Version`: `int?` — The format version of the definition (`ChartDefinitionJson.FormatVersion`). Optional: missing means 1. Saving writes the current version; every RioCharts 1.x reads version 1 definitions. - `Title`: `string?` — Optional chart title. - `Compact`: `bool` — Compact chart (sparkline): no axes, grid, legend or title; the series fill the box and the y range fits the data tightly (bars keep zero). For small charts in tables and tiles. - `AutoCompact`: `bool` = `true` — Default true: as the chart gets small, leave out axis titles, then the legend, title and axis labels; very small charts become compact. False keeps everything at any size. - `Horizontal`: `bool` — Bar, box plot, waterfall and dumbbell charts: they run left to right with the categories down the side (first on top). For rankings and long category names. The y axis settings (title, format, min, max) apply to the values. - `Projection`: `MapProjection` — Maps: how the round world is drawn flat. EqualEarth (default) keeps every country's true relative size; Mercator is the projection of web maps, familiar shapes but areas that grow toward the poles. - `X`: `AxisOptions` — Horizontal axis. - `Y`: `AxisOptions` — Primary vertical axis (id "y" unless set). Drawn on the left and owns the grid lines. - `YAxes`: `IReadOnlyList` — Additional vertical axes, e.g. a second unit. Drawn on the right unless Position is Left. Series bind to them with yAxisId. - `Legend`: `LegendOptions` — Legend settings. By default it is shown only when there is more than one series. - `Tooltip`: `TooltipOptions` — Tooltip settings. On by default, with one tooltip per x position across series. - `Series`: `IReadOnlyList` — Series to draw, in order. Colors are assigned from the palette in this order. - `Annotations`: `IReadOnlyList` — Reference lines and bands, e.g. a target or an incident period. - `TimeZone`: `string?` — Display time zone: "UTC", "local" (the viewer's zone) or an IANA id such as "Europe/Stockholm". Null shows times as given. Times are then plotted on instants and labelled in this zone. - `UnspecifiedTimes`: `UnspecifiedTimes?` — With a display zone: how to read times without a zone (DateTime with Kind Unspecified). Utc or DisplayZone. - `Dataset`: `string?` — Dataset (by id from the data source) that series read their x and y fields from, unless a series names its own. - `Data`: `IReadOnlyList>?` — Inline rows for small data, e.g. [{"month":"Jan","revenue":42}]. At most 1000 rows; prefer a dataset id for real data. #### `ChartDataset` (class, RioCharts.Core.Definitions) Tabular data that chart definitions refer to by name and fields, so a definition (e.g. from an AI agent) stays small and never has to carry the data itself. - `Name`: `string` (read-only) — The name definitions refer to (matched case-insensitively). - `Description`: `string?` (read-only) — What the data is (shown to AI agents), e.g. "Orders per day and store". - `Fields`: `IReadOnlyList` (read-only) — The columns. - `RowCount`: `int` (read-only) — The number of rows (the longest field). - `new ChartDataset(string name, IReadOnlyList fields, string? description = null)` — Creates a dataset. - `DataField? Field(string name)` — The field with this name (case-insensitive), or null. - `static ChartDataset FromRows(string name, IEnumerable> rows, string? description = null, IReadOnlyDictionary? fieldDescriptions = null)` — Builds a dataset from rows of field values (numbers, times, text; JSON elements are read too). - `static ChartDataset FromItems(string name, IEnumerable items, string? description = null, IReadOnlyDictionary? fieldDescriptions = null)` — Builds a dataset from objects: one field per public readable property (camelCase names). - `static ChartDataset FromJson(string name, JsonElement array, string? description = null)` — Builds a dataset from a JSON array of objects. - `static ChartDataset FromCsv(string name, string csv, string? description = null, IReadOnlyDictionary? fieldDescriptions = null)` — Builds a dataset from CSV text with a header row. The delimiter (comma, semicolon or tab) is detected from the header. Quoted cells may hold delimiters, quotes ("") and line breaks. Numbers use a decimal point; with a semicolon or tab delimiter a decimal comma also works (as Excel writes in many locales). ISO 8601 cells become times, empty cells are gaps. #### `ChartSelectionMode` (enum, RioCharts.Blazor) What the user can select on a chart with the pointer or keyboard. - `None` — Nothing (default). Selections set from code still show. - `Points` — Points and bars: a click (or Enter on a focused point) selects one, Ctrl/Cmd or Shift+click adds or removes one, a click on an empty part of the plot clears the selection. - `Range` — An x range: drag across the plot (mouse). A click without a drag clears it. With `Zoomable`, drag selects; zoom with Ctrl/Cmd+wheel, pinch or the keyboard instead. #### `SelectionChangedEventArgs` (record, RioCharts.Blazor) Raised when the selection changes, by the user or from code. - `Items`: `IReadOnlyList` — The selected items: the selected points' items, or with a range the items of the visible series' points inside it. Empty for columnar data. - `Range`: `ChartRange?` — The selected x range, or null when points (or nothing) are selected. - `new SelectionChangedEventArgs(IReadOnlyList Items, ChartRange? Range)` — Raised when the selection changes, by the user or from code. #### `ChartImageOptions` (record, RioCharts.Blazor) Options for exporting a chart as an image in the browser. - `Scale`: `double` = `2` — PNG only: pixels per CSS pixel. Default 2 (sharp on high-density screens and in print). - `Background`: `string?` — Background color (any CSS color). Default: the chart's surface color (`--rio-surface`), so the image reads the same outside the page. "transparent" for none. #### `CsvOptions` (record, RioCharts.Core.Data) Options for `ChartCsv.Write`. - `Delimiter`: `Char` — Column separator. Default ','. - `Culture`: `CultureInfo` — Culture for numbers. Default invariant (a '.' decimal point), which spreadsheets and code read alike. - `XHeader`: `string` = `"x"` — Header of the x column. Default "x". - `NewLine`: `string` = `"\r\n"` — Line ending. Default "\r\n" (RFC 4180). #### `Aggregate` (enum, RioCharts.Core) How rows with the same x (or time bucket) are combined into one value. - `Sum` — The sum of the values. - `Average` — The mean of the values. - `Min` — The lowest value. - `Max` — The highest value. - `Count` — The number of rows (no y field needed). - `Last` — The last value in row order, skipping missing values. #### `SeriesData` (class, RioCharts.Core.Data) The single data representation inside Core: contiguous columns (structure of arrays). `SeriesData.Y` uses NaN for missing values, which become gaps in lines. Numeric and time data is sorted by x on creation; `SeriesData.SourceIndex` maps back to the input. - `X`: `double[]` (read-only) — The x values, sorted ascending: numbers, time in milliseconds (see `TimeValue`) or category indexes. Treat as read-only; the arrays are exposed for speed. - `Y`: `double[]` (read-only) — The y values, one per x; NaN is a gap. Treat as read-only. - `Kind`: `XKind` (read-only) — What the x values are: numbers, times or categories. - `Count`: `int` (read-only) — The number of points. - `Categories`: `IReadOnlyList` (read-only) — Category names when `SeriesData.Kind` is Category; X holds indexes into this list. - `SourceIndex`: `int[]?` (read-only) — For each point, its index in the original input; null when the input order was kept. - `Low`: `double[]?` (read-only) — Range series: the low value of each point (`SeriesData.Y` is the high value), NaN where missing; null for other series. Set with `SeriesData.WithLow`. - `Colors`: `string?[]?` (read-only) — Each point's own color (a CSS color or theme token such as "--rio-negative"), null where the point keeps its series color; null when no point has one. Set with `SeriesData.WithColors`. - `Latitudes`: `double[]?` (read-only) — Map bubbles: each point's latitude in degrees, NaN where missing; null for other series. Set with `SeriesData.WithLocations`. - `Longitudes`: `double[]?` (read-only) — Map bubbles: each point's longitude in degrees, NaN where missing; null for other series. Set with `SeriesData.WithLocations`. - `Totals`: `bool[]?` (read-only) — Waterfalls: true for each total point, whose y is the running total of the changes before it; null for other series (and for a waterfall without totals). Set with `SeriesData.WithTotals`. - `Sizes`: `double[]?` (read-only) — Bubbles (scatter with a size): each point's size, NaN where missing; null for other series. A bubble's area is proportional to its size. Set with `SeriesData.WithSizes`. - `ErrorLow`: `double[]?` (read-only) — Error bars: the low end of each point's error bar (a value, not a distance), NaN where it has none; null when the series has no error bars. Set with `SeriesData.WithErrors`. - `ErrorHigh`: `double[]?` (read-only) — Error bars: the high end of each point's error bar, NaN where it has none; null without error bars. - `Targets`: `double[]?` (read-only) — Bullets: each point's target value, NaN where it has none; null for other series. Set with `SeriesData.WithTargets`. - `TimeOffsets`: `double[]?` (read-only) — Time data: the UTC offset (milliseconds) of each point when the input had one (DateTimeOffset, or DateTime with Kind Utc or Local), NaN otherwise; null when no point had one. Used only when the chart has a display time zone; by default times are shown as given. - `Rows`: `string[]?` (read-only) — Range bars: the row of each point, e.g. the machine or task it belongs to (`SeriesData.X` is the start, `SeriesData.Y` the end, in the same units); null for other series. Set with `SeriesData.WithRows` or made by `SeriesData.FromRanges`. - `Empty`: `SeriesData` (static) — A series with no points. - `SeriesData WithColors(IReadOnlyList colors)` — The same points with a color each (bars, scatter markers, slices, treemap items; a dot on lines and areas). `colors` is in input order like the y values: index i is the color of input item (or group) i; null keeps the series color. - `SeriesData WithLocations(ReadOnlySpan latitudes, ReadOnlySpan longitudes)` — The same points with a place each, for bubbles on a map. Both are in input order, like the y values given when creating the data: index i is the place of input item (or group) i. - `string ColorAt(int point, string fallback)` — The color of a point: its own, or `fallback` (the series color). - `SeriesData WithLow(ReadOnlySpan low)` — The same points with a low value each, for range series (`SeriesData.Y` is the high value). `low` is in input order, like the y values given when creating the data: index i is the low of input item (or column entry) i. - `SeriesData WithTotals(ReadOnlySpan totals)` — The same points as a waterfall with totals: `totals` is in input order, like the y values given when creating the data (index i is true when input item or group i is a total). A total point's y becomes the running total of the changes before it (its own y is ignored); the other points are changes, and gaps (NaN) change nothing. - `SeriesData WithSizes(ReadOnlySpan sizes)` — The same points with a size each, which makes a scatter series a bubble chart. `sizes` is in input order, like the y values given when creating the data: index i is the size of input item (or group) i. - `SeriesData WithErrors(ReadOnlySpan low, ReadOnlySpan high)` — The same points with an error bar each, from `low` to `high` (values on the y axis, e.g. y - sd and y + sd). Both are in input order, like the y values given when creating the data: index i belongs to input item (or group) i; NaN for none. - `SeriesData WithTargets(ReadOnlySpan targets)` — The same points with a target each (bullet charts). `targets` is in input order, like the y values given when creating the data: index i is the target of input item (or group) i. - `SeriesData WithCandles(ReadOnlySpan candles)` — The same points as candles: `candles` is in input order (index i is the candle of input item or group i). Each point's y becomes its candle's close; an incomplete candle is a gap. - `SeriesData WithBox(ReadOnlySpan boxes)` — The same points as boxes: `boxes` is in input order, like the y values given when creating the data (index i is the box of input item or group i). Each point's y becomes its box's median. - `static SeriesData FromBoxGroups(IEnumerable items, Func xValue, Func value, IReadOnlyList groups)` — Box plot data from raw values: items with the same x form one box, summarized with `BoxSummary.FromValues`. Categories keep the order of first appearance; numbers and times are sorted. Null values are skipped. - `SeriesData WithRows(IReadOnlyList rows)` — The same points as range bars, each in a row: `rows` is in input order, like the y values given when creating the data (index i is the row of input item i); a null or missing row is "". `SeriesData.X` is each bar's start and `SeriesData.Y` its end. - `static SeriesData FromRanges(IEnumerable items, Func? row, Func start, Func end)` — Range bars from items: a bar from `start` to `end` (both numbers, or both DateTime, DateTimeOffset or DateOnly; the first non-null start decides) in the row `row` gives (null: every bar in one row, named after the series). Items without a start are left out; a missing end, or one before the start, draws nothing. Points are sorted by start; selectors run once here, never per render. - `int ToSourceIndex(int index)` — Index of the point in the original input (items list or columns). - `static SeriesData From(ReadOnlySpan x, ReadOnlySpan y)` — Numeric x and y columns (copied). Points without a finite x are dropped, unsorted x is sorted, and missing y values are NaN (gaps). - `static SeriesData From(ReadOnlyMemory x, ReadOnlyMemory y)` — Numeric x and y columns (copied). - `static SeriesData From(ReadOnlySpan x, ReadOnlySpan y)` — Time x and y columns (copied); times are used as given, see `TimeValue`. - `static SeriesData From(ReadOnlyMemory x, ReadOnlyMemory y)` — Time x and y columns (copied). - `static SeriesData From(ReadOnlySpan x, ReadOnlySpan y)` — Time x and y columns (copied); each value contributes its own wall-clock time. - `static SeriesData From(ReadOnlyMemory x, ReadOnlyMemory y)` — Time x and y columns (copied). - `static SeriesData FromCategories(IReadOnlyList categories, ReadOnlySpan y)` — Category data; order of first appearance is kept. - `static SeriesData FromItems(IEnumerable items, Func xValue, Func yValue)` — Builds columns from items. X may be a number, DateTime, DateTimeOffset, DateOnly or string (category); the first non-null value decides the kind. A null Y is a gap. Selectors run once here, never per render. - `static SeriesData FromGroups(IEnumerable items, Func xValue, Func, double?> aggregate)` - `static SeriesData FromGroups(IEnumerable items, Func xValue, Func, double?> aggregate, IReadOnlyList groups)` — Groups items with the same x and makes one point per group, with y from `aggregate` (null is a gap). Categories keep the order of first appearance; numbers and times are sorted as usual. Items with a null x are left out. Selectors and the aggregate run once here, never per render. #### `ColorBand` (record, RioCharts.Core) A color for values in a range, e.g. { "above": 120, "color": "--rio-negative" }: a line or area takes it where it runs in the range, a bar or scatter point when its value is in it. - `Above`: `double?` — Values above this take the color. Null: no lower bound. - `Below`: `double?` — Values below this take the color. Null: no upper bound. - `Color`: `string` — A CSS color or a theme token such as "--rio-negative". - `Label`: `string?` — A name for the band, e.g. "High": a heatmap's legend shows it instead of the band's range. Null: the range ("> 80"). #### `SeriesBuffer` (class, RioCharts.Core.Data) A growing window of points for live data: append from any thread, and charts that use it redraw at a capped rate. The oldest points drop out when `SeriesBuffer.Capacity` is reached or, for time data, when they are older than `SeriesBuffer.TimeWindow` behind the newest point. - `Capacity`: `int` (read-only) — The most points kept; the oldest drop out beyond it. - `TimeWindow`: `TimeSpan?` (read-only) — For time data: points further than this behind the newest one drop out. Null keeps them until `SeriesBuffer.Capacity`. - `Kind`: `XKind` (read-only) — Time or Numeric x values. - `Version`: `long` (read-only) — Increases with every change; charts compare it to know when to redraw. - `Count`: `int` (read-only) — The number of points in the buffer now. - `new SeriesBuffer(int capacity = 100000, TimeSpan? timeWindow = null, XKind kind = XKind.Time)` - `void Append(DateTime x, double y)` — Appends a point at a time (used as given, see `TimeValue`). Thread-safe. - `void Append(DateTimeOffset x, double y)` — Appends a point at a time (its own wall-clock time). Thread-safe. - `void Append(double x, double y)` — Appends a point; y may be NaN for a gap. On time buffers x is in milliseconds (`TimeValue`). - `void AppendRange(ReadOnlySpan x, ReadOnlySpan y)` — Appends many points with one change notification. - `void AppendRange(ReadOnlySpan x, ReadOnlySpan y)` — Appends many points with one change notification (x in data units). - `void Clear()` — Removes all points. Thread-safe. - `SeriesData ToSeriesData()` — A copy of the current points as chart data (sorted by x). #### `TimeBucket` (enum, RioCharts.Core) Time interval that rows are grouped into before aggregating. - `Minute` — One bucket per minute. - `Hour` — One bucket per hour. - `Day` — One bucket per day. - `Week` — One bucket per week, starting on Monday. - `Month` — One bucket per calendar month. - `Quarter` — One bucket per calendar quarter. - `Year` — One bucket per calendar year. - `Auto` — Picks one of the others from the data's time span: the one that gives closest to 50 buckets (e.g. weeks for a year of data, hours for a day). Chosen once per data change. #### `CurveType` (enum, RioCharts.Core) Line shape. Step holds each value until the next point. - `Linear` — Straight segments between points. - `Monotone` — A smooth curve that does not overshoot the data. - `Step` — Holds each value until the next point. #### `LineDash` (enum, RioCharts.Core) Dash pattern of a line. The dashes and dots scale with the line width. - `Solid` — A solid line. - `Dashed` — Dashes, e.g. for a forecast or a plan next to the actual values. - `Dotted` — Round dots, e.g. for a target or a previous period. #### `PointHighlight` (enum, RioCharts.Core) Points of a line or area series to mark with a dot (combine with |). - `None` — No highlighted points. - `Last` — The last value (the latest, for time series). - `First` — The first value. - `Min` — The lowest value. - `Max` — The highest value. - `All` — Every point: shows where the values are when there are few of them. Flags: combine values with `|`. #### `ChartSort` (enum, RioCharts.Core) Order of points sorted by value. - `Ascending` — Smallest first. - `Descending` — Largest first. #### `AnnotationLayer` (enum, RioCharts.Core) Whether an annotation is drawn below or above the series. - `Below` — Behind the series. - `Above` — On top of the series. #### `AnnotationAxis` (enum, RioCharts.Core) The axis a line or band annotation refers to. - `X` — The horizontal axis: a vertical line or band. - `Y` — A vertical axis: a horizontal line or band. #### `LabelPosition` (enum, RioCharts.Core) Where an annotation label sits along its line or band. - `Start` — At the start: the left of a horizontal line, the bottom of a vertical line. - `Middle` — In the middle. - `End` — At the end: the right of a horizontal line, the top of a vertical line. #### `RioChartDefaults` (record, RioCharts.Blazor) Settings shared by charts instead of repeated on each one, e.g. `new RioChartDefaults { Culture = new("sv-SE"), TimeZone = "Europe/Stockholm", Height = 260 }`. Register them for the whole app in Program.cs with `builder.Services.AddRioCharts(defaults)` (reaches every render mode), and/or cascade them to part of the app with `` (a cascade does not cross into components with another render mode). Each setting comes from the chart's own parameter, else the cascaded defaults, else the registered ones, else the built-in default; null leaves it to the next. A chart's `YAxis` replaces the default axis as a whole: write `defaults.YAxis with { Title = "kWh" }` to change one setting. A non-fixed cascade can be replaced at runtime (e.g. on a language switch) and the charts follow. - `Height`: `double?` — Height in pixels. Null: 300. - `Culture`: `CultureInfo?` — Culture for labels. Null: the current culture. - `TimeZone`: `string?` — Display time zone: "UTC", "local" or an IANA id such as "Europe/Stockholm". Null: times are shown as given. - `UnspecifiedTimes`: `UnspecifiedTimes?` — With a TimeZone: how DateTime values with Kind Unspecified are read. - `XAxis`: `AxisOptions?` — The horizontal axis, e.g. its format. - `YAxis`: `AxisOptions?` — The primary vertical axis, e.g. its format or grid lines. - `Legend`: `LegendOptions?` — Legend settings, e.g. `new LegendOptions { Position = LegendPosition.Bottom }`. - `Tooltip`: `TooltipOptions?` — Tooltip settings. - `Animate`: `bool?` — False turns off the fades on every chart. Null: on. - `KeyboardNavigation`: `bool?` — Keyboard navigation of points. Null: on for charts that are not compact. - `Class`: `string?` — Extra CSS class on every chart's container. #### `ExportFormat` (enum, RioCharts.Blazor) An export format. - `Png` — A PNG image. - `Svg` — An SVG document. - `Csv` — The chart's data as CSV. #### `ScaleType` (enum, RioCharts.Core) The scale of an axis. - `Auto` — Picked from the data: times give a time axis, numbers a linear axis, strings a band axis. - `Linear` — A continuous numeric axis. - `Time` — A continuous time axis with calendar ticks. - `Band` — Evenly spaced categories. - `Log` — A logarithmic numeric axis: equal ratios get equal distances, for data that spans several powers of ten. Ticks are powers of ten (with 2 and 5 between them for short ranges). Values of zero or below have no place on it: they are left out (gaps in lines) with a warning. On the x axis for numbers under lines, areas and scatter points, not bars. #### `AxisPosition` (enum, RioCharts.Core) Side of a vertical axis. - `Auto` — The primary axis on the left, additional axes on the right. - `Left` — On the left of the plot. - `Right` — On the right of the plot. #### `StackMode` (enum, RioCharts.Core) How stacked series add up on their axis. - `Normal` — Values stack on each other: the top of a stack is the total. - `Percent` — Each stack fills the axis (100 %): the series show their share of the total per x value. #### `LegendMode` (enum, RioCharts.Core) When the legend is shown. - `Auto` — Only when there is more than one series. - `Show` — Always. - `Hide` — Never. #### `LegendPosition` (enum, RioCharts.Core) Where the legend sits. - `Top` — Above the plot. - `Bottom` — Below the plot. - `Right` — To the right of the plot (moves to the top when the chart is too narrow). #### `AnnotationType` (enum, RioCharts.Core) Kind of annotation. - `Line` — A reference line at `Annotation.Value` (e.g. a sales target). - `Band` — A shaded band from `Annotation.From` to `Annotation.To` (e.g. a campaign period). - `Point` — A marker at `Annotation.X`, `Annotation.Y`. - `Callout` — A point marker with its label in a text box offset from the point. #### `SeriesOptions` (record, RioCharts.Core) One series: its type, where its data comes from (fields and transforms in JSON definitions) and how it looks. 64 properties: `Id`, `Type`, `Dataset`, `X`, `Y`, `Filter`, `TimeBucket`, `Aggregate`, `GroupBy`, `Sort`, `Limit`, `Name`, `Color`, `Curve`, `StrokeWidth`, `Dash`, `ZIndex`, `YAxisId`, `Stack`, `DataLabels`, `Low`, `Open`, `Q1`, `Q3`, `High`, `Row`, `Start`, `End`, `Total`, `BinWidth`, `BinCount`, `MarkerSize`, `MaxBarWidth`, `GroupByCountry`, `Latitude`, `Longitude`, `Size`, `SizeName`, `SizeFormat`, `TrendLine`, `DirectionColors`, `Highlight`, `InnerRadius`, `StartAngle`, `EndAngle`, `GroupSmallSlices`, `Path`, `VisibleLevels`, `ColorBands`, `ColorField`, `PathSeparator`, `Max`, `Min`, `Midpoint`, `BelowColor`, `Target`, `From`, `Error`, `ErrorField`, `ErrorLow`, `ErrorHigh`, `TargetField`, `Format`, `DisplayName`. #### `DataField` (class, RioCharts.Core.Definitions) A named column: its type and values (double, DateTime/DateTimeOffset or string; null for missing). - `Name`: `string` (read-only) — The field name definitions refer to (matched case-insensitively). - `Type`: `FieldType` (read-only) — The kind of values. - `Values`: `object?[]` (read-only) — One value per row: double, DateTime/DateTimeOffset or string; null for missing. - `Description`: `string?` (read-only) — What the field means (shown to AI agents), e.g. "Revenue in €". - `new DataField(string name, FieldType type, object?[] values, string? description = null)` — Creates a field. #### `XKind` (enum, RioCharts.Core.Data) What the x values of a series are. - `Numeric` — Plain numbers. - `Time` — Times, stored as milliseconds (see `TimeValue`). - `Category` — Categories, stored as indexes into `SeriesData.Categories`. #### `FieldType` (enum, RioCharts.Core.Definitions) The kind of values in a dataset field. - `Number` — Numbers (double). - `Time` — Times (DateTime or DateTimeOffset). - `Text` — Text (string). ## More - Getting started: https://riocharts.com/getting-started - All chart types with live examples: https://riocharts.com/gallery - Chart definitions (JSON), explained with examples you can try: https://riocharts.com/definitions - AI agents and MCP (`riocharts-mcp` renders charts to PNG and turns definitions into Razor): https://riocharts.com/ai - Source: https://github.com/joadan/RioCharts