Our Black Friday offer is live! Apply code BLACKFRIDAY2026 at checkout and save $100 / €100. See Pricing
When the data is too large to load at once, give the chart only the part it is showing. Every zoom or pan asks the data source for the visible range at the resolution of the screen, so the chart never holds more than a few thousand points.
This chart browses five million readings. Set Min and Max of the category axis to the full range of the data, so the chart knows how far it can zoom and pan even though it holds only a part of it.
Handle LoadData: the chart raises it once it knows its size and every time the visible range changes, with the Start and End of the range and the Width of the plot area in pixels. Load that range and assign it to the Data of the series.
The data source should return a number of points that depends on the width and not on the range, for example the lowest and highest value of each interval, so the amount of data stays the same at every zoom level.
In this demo the ReadingStore class stands in for a database or an API.
Series that cannot be sampled, such as candlesticks and columns, are aggregated by the data source in the same LoadData handler. This chart holds two million one-minute prices and picks the candle interval from the visible range and the Width of the plot area, from 30 days down to one minute.
Each candle is a real item of Data - the open of the first price, the close of the last, the highest and the lowest of the interval - so tooltips and click events work as usual.
When the data is too large to send to the chart at once, or lives in a database that can aggregate it faster than the browser can.
Set Min and Max of the category axis to the full range. The chart then zooms and pans across it while the series holds only the visible part.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT
Using Radzen? Leave a review
On this page