Radzen Blazor Components

Our Black Friday offer is live! Apply code BLACKFRIDAY2026 at checkout and save $100 / €100. See Pricing

Radzen Blazor Chart with Data Loaded on Demand

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.

Line Link to this section

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.

Use the mouse wheel or pinch to zoom in/out and drag the scrollbar to pan.

Candlestick Link to this section

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.

Zoom in to go from monthly candles down to one minute.

Frequently asked questions

When should I load chart data on demand?

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.

How does the chart know the full range?

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 Newsletter

Get an email when new components and releases ship.

We care about your data. Read our Privacy Policy.

All the tools in one place
Save Hours on Every Project

With Radzen Blazor subscription you get the full toolkit, including:

Dedicated support backed by proven expertise

Premium themes and theme editor

Ready-to-use UI blocks

Complete app templates

Visual design-time-experience

Radzen Blazor Studio

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under MIT
Using Radzen? Leave a review

On this page

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Material 3 Expressive
  • Material 3 Expressive Dark
  • Zen
  • Zen Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙