Big Data Visualization
What is big data visualization?
Big data visualization (also called large dataset visualization) is turning datasets too large to read as tables, from millions of sensor readings to years of tick-by-tick prices, into charts that people can explore. It combines reducing what has to be drawn, by aggregating or downsampling, with rendering fast enough that zooming and panning stay smooth.

One million points in five signals, drawn in a browser. Try the interactive version: add millions more, then zoom and pan.
- For a chart, data is "big" when it has more points than the screen has pixels to show them, or when it changes faster than the chart can redraw.
- A chart can't show every point. A 1,920-pixel-wide chart of 10 million points has about 5,200 points per pixel column, so the work is choosing what to draw.
- SVG draws each point as an element in the page; Canvas paints a bitmap with the CPU; WebGL and WebGPU draw with the graphics card. Each step up handles more points and takes more work to program.
- Downsampling, aggregation, level of detail and progressive loading cut what has to be drawn without hiding peaks and outliers.
- Measure on your own data and devices. The live test below times SVG and WebGL in your browser.
What counts as big data for a chart?
In databases, "big data" means data too large or fast for one machine to store and process. For a chart, the bar is much lower. What matters is how many points you ask the browser to draw, and how often.
Two numbers decide it:
- Points in the dataset: everything you've loaded. This sets memory use and how long it takes to process the data. A pair of 64-bit numbers (one x, one y) takes 16 bytes, so 10 million points take about 160 MB before any copies.
- Points on the screen: what the chart has to draw in the current view. This sets how long each frame takes, and it's limited by pixels. A chart 1,920 pixels wide can only show 1,920 distinct x positions, however many points fall inside them.
Past a few points per pixel, extra points add work but not detail. A line chart with 5,200 points in one pixel column draws a single vertical stroke from the lowest to the highest of them. Keep those two values (and the column's first and last) and you get the same picture from a fraction of the points, which is what downsampling does.
Datasets reach millions of points quickly. Some worked examples, simple arithmetic rather than benchmarks:
| Source | Rate | Points |
|---|---|---|
| Vibration sensor | 1,000 samples a second for 24 hours | 86.4 million |
| ECG, 12 leads | 500 samples a second per lead for 1 hour | 21.6 million |
| One stock's price, 1-second bars | One bar a second for a 6.5-hour trading day, for a year (252 days) | 5.9 million |
| Server metrics | 200 hosts, one reading every 10 seconds for 30 days | 51.8 million |
Types of charts for big data
Some chart types summarise large datasets well; others turn into an unreadable blob. The right one depends on the shape of the data:
| Data | Chart that scales | Why |
|---|---|---|
| Values over time (signals, prices, metrics) | Line chart | A line shows the envelope of millions of samples, and downsampling keeps every peak |
| Many measurements of two variables | Scatter plot with small, transparent markers, or a density plot | Transparency and density show where points pile up instead of a solid block |
| A value on a grid (time × frequency, x × y) | Heatmap or spectrogram | Colour encodes millions of cells in a fixed number of pixels |
| A value over two dimensions, as a shape | 3D surface plot | One mesh shows a whole grid of readings |
| Prices at high frequency | Candlestick chart | Each candle aggregates many trades into open, high, low and close |
Charts with one shape per category, such as pie charts and bar charts, don't scale to big data: aggregate first, then chart the totals.
SVG vs Canvas vs WebGL: how browsers draw charts
Every web chart is drawn with one of three browser technologies. The choice matters little for a chart with 50 bars, and decides everything for a chart with 5 million points.
- SVG (Scalable Vector Graphics) describes a chart as shapes: each point, line and label is an element in the page's document (the DOM). The browser keeps every element, works out its style and position, and paints it. That makes SVG easy to style with CSS, crisp at any zoom, and readable by screen readers and search engines. It also means the cost grows with every point added.
- Canvas (the Canvas 2D API) gives you a bitmap and drawing commands. JavaScript paints the points, and the browser keeps only pixels, not shapes. There's no per-point element, so it handles far more points than SVG, but JavaScript still issues the drawing commands one shape at a time, and you have to work out which point is under the mouse yourself.
- WebGL and WebGPU give the page access to the graphics card (GPU). The data is copied into GPU memory, and small programs called shaders draw all the points in parallel. WebGPU is WebGL's successor, built around modern GPU interfaces, with less overhead per draw and support for general-purpose computing on the GPU. Writing WebGL or WebGPU by hand is hard, so most people use a library built on them.
Where does D3.js fit?
D3.js is a toolkit for building custom charts rather than a chart library: you compose scales, shapes and data joins yourself, and render with web standards such as SVG or Canvas. That makes it very flexible. Its data joins bind each data point to an element in the page, so a D3 chart drawn with SVG has an element per mark and inherits SVG's costs. D3 can also draw to Canvas, which raises the limit, but you then write the drawing, hit-testing and redraws yourself. D3 has no GPU renderer of its own.
| SVG | Canvas 2D | WebGL / WebGPU | |
|---|---|---|---|
| How it draws | One page element per shape | JavaScript paints a bitmap | Shaders on the GPU |
| What grows with each point | Elements to style, lay out and paint | Draw commands on the CPU | Data copied to GPU memory |
| Styling with CSS | Yes, per element | No, set in code | No, set in code |
| Accessibility | Elements can have titles, roles and labels | A bitmap: add accessible text separately | A bitmap: add accessible text separately |
| Mouse interaction | Built in: events on each element | Write your own hit-testing | Write your own, or use a library's |
| Text quality | Crisp, selectable text | Painted text, can blur unless scaled for the screen | Painted text; libraries often overlay HTML text |
| Effort to build a chart by hand | Low | Moderate | High, so usually a library |
| Typical fit | Small to medium charts, infographics, highly custom designs | Medium datasets, simple animation | Millions of points, real-time data, many charts on one page, 3D |
The table is about each technology, not every product built on it: a well-built SVG chart can beat a poorly built WebGL one. The Sources list the specifications behind it.
Try it: SVG vs WebGL in your browser
Claims about speed are easy to make, so test it. The panels below draw the same scatter points twice: on the left with plain SVG (one <circle> element per point, no library), and on the right with WebGL or WebGPU. Pick a size, and each panel reports how long it took in your browser, on your device, from the start of drawing to the frame appearing on screen. Then scroll and drag on the right-hand chart to zoom and pan.
What to look for:
- At 1,000 points both are quick. For small charts, SVG's convenience usually wins.
- At 10,000 and 100,000 points the SVG time grows with the point count, because every circle is a new element the browser must style, lay out and paint. The page may freeze while it works.
- At 1,000,000 points SVG has a million elements to create, and the page may freeze for several seconds; on a phone or a low-memory device the tab may even crash. The WebGL panel still draws quickly, and still zooms and pans.
- Times vary between devices and browsers, and the first run includes some one-off setup. Run each size twice.
For comparison, here are the times measured with this test on two very different machines:
- Mac: MacBook Pro laptop, Apple M5.
- PC: Windows desktop, AMD Ryzen 7 7800X3D, AMD Radeon RX 7900 XTX, 32 GB RAM.
| Points | SVG, Mac | SVG, PC | WebGL / WebGPU, Mac | WebGL / WebGPU, PC |
|---|---|---|---|---|
| 1,000 | 6 ms | 9 ms | 4 ms | 3 ms |
| 10,000 | 51 ms | 57 ms | 1 ms | 3 ms |
| 100,000 | 162 ms | 356 ms | 3 ms | 11 ms |
| 1,000,000 | 1,434 ms | 3,495 ms | 8 ms | 13 ms |
At 1,000 points SVG and WebGL are close on both machines. From 10,000 points the SVG time climbs with every point added, and from 100,000 points it differs by more than two times between the machines. At a million points SVG takes 1.4 to 3.5 seconds, while the WebGL / WebGPU time stays under 16 ms on both. A frame at 60 frames per second has about 16 ms, so the SVG times of 51 ms and more mean visible stutter or a frozen page. Your numbers will differ on other hardware and browsers; the gap between SVG and WebGL is what to look for.
An SVG line chart can draw all its points as a single <path> element, which is much lighter than one circle per point. The path still has to be rebuilt and repainted whenever the data or the zoom changes, so the same limits appear with real-time data.
Techniques for visualising large datasets
The renderer sets how many points you can draw. These techniques cut how many you need to. Most big data charts use several together.
| Technique | What it does | Good for | Watch out for |
|---|---|---|---|
| Downsampling (resampling) | Keeps a few representative points per pixel column, such as the minimum and maximum | Long time series, signals | Simple decimation (every nth point) drops peaks; use a method that keeps them. See downsampling |
| Aggregation and binning | Replaces raw points with summaries: averages per minute, counts per grid cell, candles per period | Dashboards, scatter data, prices | Averages hide spikes; show the minimum and maximum too |
| Level of detail | Shows a coarse summary zoomed out and loads more detail as you zoom in | Very long histories, maps | Needs pre-computed summaries at several zoom levels |
| Progressive loading | Draws a first view quickly, then fills in or streams the rest | Slow networks, huge files | Show that the chart is still loading |
| Background processing | Parses and reduces data in a web worker, off the page's main thread | Parsing large files, heavy calculations | Transfer data as typed arrays (such as Float64Array) to avoid copying |
| Server-side reduction | Queries return data already aggregated or downsampled for the current view | Data that lives in a database or data warehouse | A round trip to the server on every zoom |
Downsampling is the one that matters most for line charts. Algorithms such as min-max (keep each pixel column's lowest and highest point) and LTTB (Largest-Triangle-Three-Buckets, which picks the points that best keep the line's shape) reduce millions of points to a few thousand that look the same. The downsampling guide compares them in detail.
Use typed arrays (Float64Array, Float32Array) rather than arrays of objects such as { x, y }. They take far less memory, can be handed to a worker or the GPU without conversion, and avoid pauses for garbage collection.
How to choose a rendering approach
Start from the number of points on screen, how often they change, and what else the chart needs to do:
| Your situation | Good choice | Why |
|---|---|---|
| A few hundred shapes, static, needs CSS styling or must be fully accessible | SVG | Simplest to build, style and make accessible |
| A highly custom, one-off visual design | SVG with a toolkit such as D3.js | Full control over every mark |
| Tens of thousands of points, simple interaction | Canvas | No per-point elements; still simple to code |
| Hundreds of thousands to millions of points, or zooming through long histories | WebGL / WebGPU chart library | GPU drawing plus built-in downsampling |
| Data streaming in many times a second | WebGL / WebGPU chart library | Redraws the whole chart each frame without falling behind |
| Many charts on one page (dashboards, multi-channel monitors) | WebGL / WebGPU chart library that shares the GPU between charts | Browsers limit how many WebGL contexts a page can open |
| Data too large for the browser's memory | Any renderer, after server-side reduction | Send only what the current view needs |
If you're not sure, prototype with your real data size on the slowest device your users have. The difference between approaches is small at 1,000 points and decisive at 1,000,000.
Common mistakes in big data visualization
- Sending every point to the chart and hoping. Without downsampling or a GPU renderer, the page freezes. Decide how many points the screen can show and design for that.
- Decimating instead of downsampling. Keeping every 100th point is fast but can drop the one spike you needed to see. Use min-max or LTTB, which keep peaks.
- Averaging away outliers. A per-minute average of a signal that spikes for one second shows nothing. Plot the minimum and maximum, or a band, alongside the average.
- Overplotting. A million opaque markers in a scatter plot make a solid block. Use small, semi-transparent markers, or switch to a density plot or heatmap.
- Updating point by point. Appending one value at a time triggers a recalculation or redraw each time. Batch updates and append arrays in one call.
- Testing only on a fast development machine. Laptops on battery, older phones and remote desktops can be many times slower. Test on the devices your users have.
- One WebGL context per chart on a dashboard. Browsers cap the number of WebGL contexts per page, often at 16, so a dashboard with dozens of charts can lose some of them. Use a library that shares one context across charts.
How to create a big data chart in JavaScript, React or Angular
SciChart.js draws charts with WebGL and WebGPU through its own WebAssembly engine, and resamples data to the screen's pixels automatically, so millions of points stay interactive without any downsampling code of your own. The chart below starts with one million points in five signals. Click Add 1 million points to keep adding, watch the counter and the time for each million, then scroll to zoom, drag to pan, double-click to zoom back out, and hover to read values.
Here is the code for this chart:
- JavaScript
- React
- Angular
// A JavaScript chart with millions of points: five line series, plus a button that adds a million more
const {
SciChartSurface,
NumericAxis,
NumberRange,
XyDataSeries,
FastLineRenderableSeries,
ENumericFormat,
SciChartJsNavyTheme,
CursorModifier,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier
} = SciChart;
// or, for npm, import { SciChartSurface, ... } from "scichart"
const { wasmContext, sciChartSurface } = await SciChartSurface.create(divElementId, {
theme: new SciChartJsNavyTheme()
});
sciChartSurface.xAxes.add(
new NumericAxis(wasmContext, { axisTitle: "Sample number", labelFormat: ENumericFormat.Engineering })
);
sciChartSurface.yAxes.add(
new NumericAxis(wasmContext, { axisTitle: "Value", growBy: new NumberRange(0.25, 0.05) })
);
// One data series per signal. The flags tell the chart what the data looks like, so it can skip checking.
const colours = ["#50C7E0", "#F48420", "#AE418D", "#68BCAE", "#EC0F6C"];
const dataSeries = colours.map((colour, index) => {
const series = new XyDataSeries(wasmContext, {
dataSeriesName: `Signal ${index + 1}`,
dataIsSortedInX: true,
dataEvenlySpacedInX: true,
containsNaN: false
});
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { dataSeries: series, stroke: colour, strokeThickness: 1 })
);
return series;
});
const pointsPerClick = 1000000;
const maxPoints = 10000000; // this demo stops at 10 million points
let nextPoints = createSignalGenerator(dataSeries.length);
let totalPoints = 0;
const controls = addControls(sciChartSurface.domChartRoot, {
onAdd: () => addPoints(),
onReset: () => {
dataSeries.forEach((series) => series.clear());
nextPoints = createSignalGenerator(dataSeries.length);
totalPoints = 0;
addPoints();
}
});
// Append a million points (200,000 per series) in one call per series, then time the next draw
async function addPoints() {
if (totalPoints >= maxPoints) {
controls.setStatus(`${totalPoints.toLocaleString()} points: this demo stops here. Zoom in to explore.`);
return;
}
controls.setBusy(true);
const { xValues, yValuesPerSeries } = nextPoints(pointsPerClick / dataSeries.length);
const start = performance.now();
dataSeries.forEach((series, index) => series.appendRange(xValues, yValuesPerSeries[index]));
sciChartSurface.zoomExtents();
await waitForNextDraw(sciChartSurface);
const milliseconds = Math.round(performance.now() - start);
const isFirstLoad = totalPoints === 0;
totalPoints += pointsPerClick;
controls.setStatus(
isFirstLoad
? `${totalPoints.toLocaleString()} points · click Add to time the next million`
: `${totalPoints.toLocaleString()} points · last million added and drawn in ${milliseconds} ms`
);
controls.setBusy(false);
}
// Hover for values, scroll to zoom, drag to pan, double-click to zoom back out
sciChartSurface.chartModifiers.add(
new CursorModifier({ showTooltip: true }),
new MouseWheelZoomModifier(),
new ZoomPanModifier(),
new ZoomExtentsModifier()
);
await addPoints(); // start with 1 million points
import { useRef } from "react";
import { SciChartReact } from "scichart-react";
import {
SciChartSurface,
NumericAxis,
XyDataSeries,
FastLineRenderableSeries,
SciChartJsNavyTheme,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier
} from "scichart";
// initChart builds the chart; SciChartReact creates it, sizes it and cleans it up
const initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
sciChartSurface.xAxes.add(new NumericAxis(wasmContext));
sciChartSurface.yAxes.add(new NumericAxis(wasmContext));
// The flags tell the chart what the data looks like, so it can skip checking
const dataSeries = new XyDataSeries(wasmContext, { dataIsSortedInX: true, containsNaN: false });
const { xValues, yValues } = getYourLargeDataset(); // e.g. two Float64Arrays with millions of values
dataSeries.appendRange(xValues, yValues); // one call for the whole array, not one per point
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { dataSeries, stroke: "#50C7E0", strokeThickness: 1 })
);
sciChartSurface.chartModifiers.add(new MouseWheelZoomModifier(), new ZoomPanModifier(), new ZoomExtentsModifier());
return { sciChartSurface, dataSeries };
};
export const BigDataChart = () => {
const chart = useRef<{ sciChartSurface: SciChartSurface; dataSeries: XyDataSeries }>();
// Append more points in one batch, then fit the chart to the new data
const addMore = () => {
if (!chart.current) return;
const { xValues, yValues } = getYourNextPoints();
chart.current.dataSeries.appendRange(xValues, yValues);
chart.current.sciChartSurface.zoomExtents();
};
return (
<>
<button onClick={addMore}>Add more points</button>
<SciChartReact
initChart={initChart}
onInit={(result) => (chart.current = result)}
style={{ width: "100%", height: 400 }}
/>
</>
);
};
import { Component } from "@angular/core";
import { ScichartAngularComponent } from "scichart-angular";
import {
SciChartSurface,
NumericAxis,
XyDataSeries,
FastLineRenderableSeries,
SciChartJsNavyTheme,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier
} from "scichart";
@Component({
selector: "app-big-data-chart",
standalone: true,
imports: [ScichartAngularComponent],
template: `
<button (click)="addMore()">Add more points</button>
<scichart-angular [initChart]="initChart" style="display: block; width: 100%; height: 400px"></scichart-angular>
`
})
export class BigDataChartComponent {
private sciChartSurface?: SciChartSurface;
private dataSeries?: XyDataSeries;
// initChart builds the chart; scichart-angular creates it, sizes it and cleans it up
initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
sciChartSurface.xAxes.add(new NumericAxis(wasmContext));
sciChartSurface.yAxes.add(new NumericAxis(wasmContext));
// The flags tell the chart what the data looks like, so it can skip checking
const dataSeries = new XyDataSeries(wasmContext, { dataIsSortedInX: true, containsNaN: false });
const { xValues, yValues } = getYourLargeDataset(); // e.g. two Float64Arrays with millions of values
dataSeries.appendRange(xValues, yValues); // one call for the whole array, not one per point
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { dataSeries, stroke: "#50C7E0", strokeThickness: 1 })
);
sciChartSurface.chartModifiers.add(new MouseWheelZoomModifier(), new ZoomPanModifier(), new ZoomExtentsModifier());
this.sciChartSurface = sciChartSurface;
this.dataSeries = dataSeries;
return { sciChartSurface };
};
// Append more points in one batch, then fit the chart to the new data
addMore() {
if (!this.sciChartSurface || !this.dataSeries) return;
const { xValues, yValues } = getYourNextPoints();
this.dataSeries.appendRange(xValues, yValues);
this.sciChartSurface.zoomExtents();
}
}
Key points:
- Batch your data:
appendRangeadds a whole array in one call. Pass typed arrays (Float64Array) and tell the data series what it can assume withdataIsSortedInX,dataEvenlySpacedInXandcontainsNaN, so it skips checking millions of values. - Resampling is on by default. SciChart.js reduces each series to what the pixels can show, keeping peaks and troughs, and recalculates as you zoom, so zooming in reveals the full detail. See DataSeries resampling for
resamplingModeandresamplingPrecision. - From v6, SciChart.js draws with WebGPU where the browser supports it and falls back to WebGL 2 elsewhere, with no code change. See WebGPU and WebGL renderers.
- For many charts on a page,
SciChartSurface.create()shares one GPU context across all charts, so a dashboard isn't capped by the browser's context limit;SciChartSurface.createSingle()gives each chart its own, which can draw faster for a few large charts. For hundreds of millions of points, the optional 64-bit WebAssembly build raises the memory ceiling.
See it in the demo app: JavaScript load 1 million points performance demo · React load 1 million points performance demo · Angular load 1 million points performance demo
Go deeper: SciChart.js big data chart documentation (performance tips and tricks), and Performance Comparison of JavaScript Chart Libraries for measured benchmarks from 1,000 to 10 million points.
Further reading on the SciChart blog: How to Visualize Millions of Data Points Efficiently (aggregation techniques, client vs server, benchmarking) and Which Rendering Engine Should You Use for React Charts? (SVG, Canvas and WebGL in a React app).
Frequently asked questions
What is big data visualization?
Big data visualization is turning datasets too large to read as tables, such as millions of sensor readings or years of tick-by-tick prices, into charts people can explore. It has two halves: reducing what has to be drawn (aggregation and downsampling) and drawing it fast enough that zooming and panning stay smooth.
How do you visualize big data?
Start from the question, then pick a chart that summarises well, such as a line chart for time series or a heatmap for dense scatter data. Reduce the data to what the screen can show, by downsampling, binning or aggregating, and keep the full detail available on zoom. Draw with a renderer that suits the size: SVG for small charts, Canvas for medium ones, WebGL or WebGPU for millions of points or real-time updates.
Is Canvas faster than SVG?
For many points, usually yes. SVG creates an element in the page for every shape, and the browser has to style, lay out and paint each one, so the cost grows with the number of points. Canvas paints pixels into a single bitmap with no element per shape. For a few hundred shapes the difference rarely matters, and SVG is easier to style, make accessible and make interactive.
Is WebGL faster than Canvas?
For large datasets, yes. With the Canvas 2D API, JavaScript issues drawing commands one shape at a time on the CPU. WebGL and its successor WebGPU copy the data to the graphics card once and draw all the points in parallel with shaders, so the work per point on the CPU is much smaller. WebGL code is low level, though, so most people use a chart library built on it.
Is D3.js good for large datasets?
D3.js is the most flexible way to build a custom chart on the web, but it leaves rendering to you. When a D3 chart draws with SVG, every point is an element in the page, which gets slow as points reach the tens of thousands or update in real time. D3 can also draw to Canvas, which helps, but you then handle hit-testing and redraws yourself. For millions of points, a GPU-based chart library is the usual choice.
How do I plot millions of points in JavaScript?
Use a chart library that draws with WebGL or WebGPU, such as SciChart.js. Store the values in typed arrays such as Float64Array, add them in one batch with appendRange rather than point by point, and tell the chart if the data is sorted in x. SciChart.js resamples the data to the screen's pixels automatically, so the chart stays interactive. It works the same in React with scichart-react and in Angular with scichart-angular.
Sources
- D3.js, What is D3?. D3 is a low-level toolbox used directly with web standards such as SVG and Canvas, with no chart abstraction of its own.
- MDN Web Docs, SVG: Scalable Vector Graphics. SVG images are XML elements in the document, which can be styled, scripted and indexed.
- MDN Web Docs, Canvas API. A canvas is a bitmap that keeps no information about the shapes drawn, and its content isn't exposed to accessibility tools.
- MDN Web Docs, WebGPU API. WebGPU is the successor to WebGL, with support for general-purpose GPU computation.
- MDN Web Docs, Web Workers API. Running scripts in background threads, off the page's main thread.
- Steinarsson, S. (2013), Downsampling Time Series for Visual Representation. MSc thesis, University of Iceland: the Largest-Triangle-Three-Buckets (LTTB) algorithm.