Skip to main content
SiteScan.top

How to Speed Up Chart Loading 2x

How to speed up chart loading: data format optimization, response compression, and line count control — practical techniques for fast visualization on your

Blog · Published: 28 November 2026 · 6 min read

For services with analytical dashboards, the speed of data display is one of the key usability factors. When chart loading takes several seconds, visitors lose patience before the result even appears on screen. A detailed technical breakdown of how to speed up chart loading 2x is described in the article How I Sped Up Vigo Pulse Chart Loading 2x, where the team behind an analytical product reconsidered the entire path from data request to series rendering. Below are the key takeaways from this case that are useful for auditing and optimizing any website with charts and dashboards.

Speeding up chart loading on a website — data optimization diagram

Why Rendering Speed Affects the Whole Site

Slow chart loading directly affects perception of the entire site: users judge the quality of a service by first impressions, and long waits for visualization often lead to page abandonment. This problem is especially noticeable for analytical products, where a single chart can contain hundreds of lines, and filters and time periods change arbitrarily.

In the case under review, the data path looked like this: the frontend sends a request, a backend-for-frontend validates it and queries storage, after which the response is returned to the browser, where sorting, grouping, and rendering take place. Each of these stages affects the total time until the finished chart appears.

Optimizing rendering speed isn't a single setting but a combination of several factors that work together and reinforce each other.

Response Format Solves Half the Problem

The first optimization step was rethinking the server response structure. The original format stored data row by row, with repeated segment keys and metric names in every record — this increased response size and required extra sorting on the frontend.

Grouping Points by Key

The first experiment was grouping values by segment key. This approach removed duplicate identifiers and slightly reduced response size, but didn't fully solve the problem: metric names and timestamps were still duplicated in every point.

Columnar Data Format

A more noticeable effect came from switching to a columnar representation, where metric values are stored as separate arrays tied to a shared time grid. On a large dataset, this approach reduced response size by nearly four times and cut the time needed to prepare chart series roughly in half.

Compression and Response Serialization

Changing the data structure works together with compression. Comparing gzip, Brotli, deflate, and Zstandard algorithms showed that the gain from the columnar format persists even after compression: on a large dataset, the compressed columnar response turned out to be roughly three times smaller than the row-based variant.

Testing binary serialization formats, including MessagePack and BSON, produced mixed results: some variants processed faster locally, but the final size depended heavily on the chosen compressor. In most scenarios, plain JSON with a well-designed data structure and properly configured compression proved sufficient without extra dependencies.

Controlling Line Count and Simplifying Rendering

Even a compact data format won't help if a chart displays hundreds of lines at once. That's why it's worth estimating the potential number of series for the selected filters before actually loading data: if a reasonable threshold is exceeded, it makes sense to offer users a simplified view — for example, a table with aggregated values instead of a full chart.

Once data is received, it's worth dynamically adjusting rendering parameters: disabling animations, hover highlighting, and reducing line thickness if the number of lines exceeds a comfortable limit. This approach preserves familiar behavior for small charts and speeds up work with complex visualizations.

How to Test Chart Loading Speed in Practice

Before implementing changes, it's useful to measure current metrics: server response size, time until the finished chart appears, and browser memory growth. Developer tools let you throttle network speed and see how data structure and compression affect the user's actual waiting time.

Such an audit should be performed not only for individual charts but for the page as a whole: slow visualization rendering often coexists with other performance issues — large images, unoptimized scripts, or lack of server-level compression.

Check how much of this is on your own site

A free scan surfaces broken links, JS errors and performance problems in about a minute.