A look at leeoniya/uPlot: 10.6k stars on GitHub, written primarily in JavaScript, tracked under the Data category. 📈 A small, fast chart for time series, lines, areas, ohlc & bars
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A small (~50 KB min), fast chart for time series, lines, areas, ohlc & bars (MIT Licensed)
Introduction
uPlot is a fast, memory-efficient Canvas 2D-based chart for plotting time series, lines, areas, ohlc & bars. From a cold start it can create an interactive chart containing 166,650 data points in 25ms, scaling linearly at ~100,000 pts/ms afterwards. In addition to fast initial render, the zooming and cursor performance is by far the best of any similar charting lib; at ~50 KB, it's likely the smallest and fastest time series plotter that doesn't make use of context-limited WebGL shaders or WASM, both of which have much higher startup cost and code size.
In most sane cases, you can live-stream data with uPlot at 60fps, though it may begin to struggle beyond 100k in-view points.
When updating 3,600 points at 60fps, uPlot uses 10% CPU and 12.3MB RAM.
The next fastest Canvas-based libs (Chart.js and ECharts) use 40% / 77MB and 70% / 85MB, respectively.
If you need to stream, give unclog your rendering pipeline a try.
If that does not help, consider reducing the update frequency or switch to a WebGL/WebGPU solution, like danchitnis/webgl-plot, huww98/TimeChart, epezent/implot.
Positive and negative stacking groups through opts.stack.groups. See "Stacked Area Graphs Are Not Your Friend".
A lean, consistent, and powerful API with hooks & plugins
Non-Features
In order to stay lean, fast and focused the following features will not be added:
No general-purpose data parsing, aggregation, or statistical processing. Integrated stacking only computes configured cumulative series. Prepare other results in advance with tools such as simple-statistics or uDSV.
No transitions or animations - they're always pure distractions.
No collision avoidance for axis tick labels, so may require manual tweaking of spacing metrics if label customization significiantly increases default label widths.
Smooth spline interpolation is available, but its use is strongly discouraged. See "Your data is misrepresented!".
No built-in drag scrolling/panning due to ambiguous native zoom/selection behavior. However, this can be added externally via the plugin/hooks API: zoom-wheel, zoom-touch.
Documentation (WIP)
The docs are a perpetual work in progress, it seems.
Start with /docs/README.md for a conceptual overview.
The full API is further documented via comments in /dist/uPlot.d.ts.
Additionally, an ever-expanding collection of runnable /demos covers the vast majority of uPlot's API.
libs are sorted by their initial, cold-start, render performance (excluding network transfer time to download the lib)
size includes the lib itself plus any dependencies required to render the benchmark, e.g. Moment, jQuery, etc.
Flot does not make available any minified assets and all their examples use the uncompressed sources; they also use an uncompressed version of jQuery :/
Some libraries provide their own performance demos:
TODO (all of these use SVG, so performance should be similar to Highcharts):
Chartist.js
d3-based
C3.js
dc.js
MetricsGraphics
rickshaw
Unclog your rendering pipeline
Your browser's performance is highly dependent on your hardware, operating system, and GPU drivers.
If you're using a Chromium-based browser, there are some hidden settings that can unlock significant performance improvements for Canvas2D rendering.
Most of these have to do with where and how the rasterization is performed.
Head over to https://leeoniya.github.io/uPlot/demos/sine-stream.html and open up Chrome's DevTools (F12), then toggle the Performance Monitor.
For me:
On Windows 10 Desktop, Core i7-8700, 16GB RAM, AMD RX480 GPU, 2048 x 1080 resolution = 57% CPU usage
On Manjaro Laptop (Arch Linux), AMD Ryzen 7 PRO 5850U, 48GB RAM, AMD Radeon RX Vega 8 (integrated GPU), 4K resolution = 99% CPU usage
If your CPU is close to 100%, it may be rasterizing everything in the same CPU process.
Pop open chrome://gpu and see what's orange or red.
Then open chrome://flags and search for "raster" to see what can be force-enabled.
On my Manjaro/Ryzen/Integrated GPU setup, force-enabling Canvas out-of-process rasterization resulted in a dramatic framerate improvement.
On my Windows/i7/Dedicated GPU setup, toggling the same flags moved the work to another process (still good), but did not have a significant framerate impact.
YMMV!
Acknowledgements
Dan Vanderkam's dygraphs was a big inspiration; in fact, my stale pull request #948 was a primary motivator for μPlot's inception.
Adam Pearce for #15 - remove redundant lineTo commands.
The most recent commit recorded on leeoniya/uPlot was 7 months ago, based on the GitHub push timestamp. The repository has 471 forks — one of the better signals of community interest.
How many stars does leeoniya/uPlot have?
leeoniya/uPlot has 10.6k GitHub stars — refresh the page for the live number, or check github.com/leeoniya/uPlot. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What else is in the Data space?
leeoniya/uPlot is tracked by TopGit under the Data category, alongside 16 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What language is leeoniya/uPlot written in?
leeoniya/uPlot is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/leeoniya/uPlot is the definitive source.
Why is leeoniya/uPlot categorized under Data?
TopGit places leeoniya/uPlot in the Data category based on its GitHub topics and description (tagged: "analytics", "chart", "charts"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Still deciding about uPlot?
One click hands the question to an AI along with this page — see what it says about uPlot.