Our Black Friday offer is live! Apply code BLACKFRIDAY2026 at checkout and save $100 / €100. See Pricing
A line with hundreds of thousands of points has far more points than the chart has pixels. Set Sampling to Sampling.MinMax and the series keeps only the first, the lowest, the highest and the last point of every half pixel - at most eight points per pixel - so the line keeps its shape and its peaks while the chart stays fast.
Zoom: 100%
Sampling only changes what is drawn. Tooltips and clicks still use every point, and zooming in brings back the detail: once the visible points are fewer than the pixels, all of them are drawn again.
Raise MaxZoom so the mouse wheel can zoom far enough to reach the individual points.
Sampling is available for line and area series and is skipped when AnimateDataUpdates is enabled.
A sampled series reads its data once and remembers its range. Assigning a new collection to Data is picked up automatically; after changing items in place call Reload() on the chart.
With Sampling set to MinMax a line or area series draws at most eight points per pixel no matter how many points it has, so the cost of drawing no longer grows with the data.
For series drawn with straight lines the shape stays the same: the lowest and the highest point of every half pixel are kept, so peaks are not lost.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT
Using Radzen? Leave a review