Large data

Charts with hundreds of thousands of points stay fast in Blazor: pass columns directly and let LTTB downsampling keep the shape at the plot's resolution. Draw the series on a canvas when the DOM gets heavy; zooming in downsamples only the visible points, so detail appears.

200 000 points

A month of server response times, one every 13 seconds, running in WebAssembly in your browser. Drag to zoom in.

Chart with 1 series. Response time: 200000 values, lowest 40 ms at 10/24/2026 3:39 PM, highest 454 ms at 10/18/2026 11:18 AM, trend stable. 0100200300400500Oct 19Oct 26Nov 2Nov 9Nov 16msUse Left and Right to move between points. Plus and minus zoom, Shift with Left and Right pans, 0 shows all data. Press Escape to leave.

Series layer: Canvas

Code
Razor
<RioChart TItem="double" Zoomable="true" SeriesLayer="SeriesLayer.Canvas" YAxis="@(new AxisOptions { Title = "ms" })">
    <LineSeries Name="Response time" Data="SeriesData.From(times, values)" StrokeWidth="1.25" Format="0 ms" />
</RioChart>

100 000 points in a scatter

Minutes on the site against order value for 100 000 orders. Points are data, so a scatter is never downsampled, but where markers pile up only three are drawn per square one marker radius wide: by then the translucent markers are solid, so the picture is the same. Outliers and sparse areas keep every point; the trend line uses them all. Drag to zoom into the dense corner.

Chart with 1 series. Orders: 100000 values, lowest 5 € at 0.97, highest 347 € at 80.35, trend rising. 01002003004000102030405060708090100Minutes on the siteOrder value, €Use Left and Right to move between points. Plus and minus zoom, Shift with Left and Right pans, 0 shows all data. Press Escape to leave.
Code
Razor
<RioChart TItem="double" Zoomable="true" SeriesLayer="SeriesLayer.Canvas"
          XAxis="@(new AxisOptions { Title = "Minutes on the site" })" YAxis="@(new AxisOptions { Title = "Order value, €" })">
    <ScatterSeries Name="Orders" Data="SeriesData.From(minutes, values)" MarkerSize="4" TrendLine="true" Format="0 €" />
</RioChart>

Guidelines

  • Use SeriesData.From(times, values) for big series: no per-item selectors, no boxing.
  • Downsampling is automatic (twice the plot width, four times on a canvas); set DownsampleThreshold to change it.
  • Scatter series are thinned instead: above the same threshold, at most three markers in each small square. Hover and tooltips use the drawn points.
  • SeriesLayer.Canvas keeps axes, labels and annotations in SVG and draws only the series on a canvas.
  • Update with a new SeriesData or a DataVersion; for streams use a SeriesBuffer.

Canvas compared with SVG

With SeriesLayer.Canvas the series are painted on a canvas laid over the SVG chart; axes, grid, legend, labels and annotations stay in SVG. Tooltips, clicks, zoom and pan work the same, since they use the chart's own hit testing. These differ:

WhatOn a canvas
Data labels and annotationsDrawn under the series, also annotations with Layer="AnnotationLayer.Above". A line can cross a label.
HighlightHovering a legend item or HighlightSeriesAsync does not fade the other series.
Entry fadeThe series appear at once instead of fading in.
DownsamplingLine and area series keep four times the plot width (at least 2000 points) instead of twice.
StylingColors and theme tokens apply, and the canvas repaints when the theme changes; your own CSS rules on the series' SVG elements do not.
Image exportExportSvgAsync writes the series as a PNG image inside the SVG; ExportPngAsync is unaffected. Server export with RioCharts.Skia always draws vectors.
Static renderingStatic server rendering and prerendering draw the series in SVG; the canvas takes over once the chart runs interactively.
MapsDrawn in SVG, countries and bubbles; SeriesLayer has no effect.

Use SVG unless the series have many thousands of drawn shapes; most charts never need the canvas.

An unhandled error has occurred. Reload 🗙