Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
A small (~30 KB min), fast chart for time series, lines, areas, ohlc & bars (MIT Licensed)
μPlot 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 150,000 data points in 135ms, scaling linearly at ~25,000 pts/ms. In addition to fast initial render, the zooming and cursor performance is by far the best of any similar charting lib; at ~30 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.
However, if you're looking for true real-time 60fps performance with massive datasets, uPlot can only get you so far. WebGL should still be the tool of choice for applications like realtime signal or waveform visualizations: Try danchitnis/webgl-plot, huww98/TimeChart, epezent/implot.
In order to stay lean, fast and focused the following features will not be added:
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.
Benchmarks done on a ThinkPad T480S:
Full size: https://leeoniya.github.io/uPlot/demos/multi-bars.html
Raw data: https://github.com/leeoniya/uPlot/blob/master/bench/results.json
| lib | size | done | js,rend,paint,sys | heap peak,final | interact (10s) | | --------------- | ------- | ------- | ----------------- | --------------- | ------------------- | | uPlot | 38 KB | 65 ms | 93 2 1 50 | 13 MB 3 MB | 167 384 128 223 | | ECharts | 954 KB | 114 ms | 149 2 2 55 | 13 MB 5 MB | 2783 495 147 698 | | Flot | 494 KB | 110 ms | 166 5 2 73 | 32 MB 18 MB | --- | | dygraphs | 125 KB | 155 ms | 200 4 1 98 | 72 MB 49 MB | 1663 237 113 374 | | Chart.js-next | 219 KB | 250 ms | 290 2 1 65 | 33 MB 20 MB | 6256 50 79 1313 | | LightningChart® | 1000 KB | --- ms | 359 3 1 54 | 26 MB 18 MB | 9308 87 71 279 | | CanvasJS | 479 KB | 292 ms | 340 3 1 80 | 38 MB 27 MB | 1782 431 112 354 | | Highcharts | 319 KB | --- ms | 370 8 2 61 | 52 MB 38 MB | 1806 661 176 243 | | dvxcharts | 362 KB | 310 ms | 518 26 2 68 | 62 MB 24 MB | 1033 592 146 189 | | Chart.js | 245 KB | 616 ms | 661 3 2 70 | 92 MB 79 MB | 8471 6 9 1152 | | Plotly.js | 3500 KB | 449 ms | 769 8 2 82 | 56 MB 23 MB | 1522 201 52 172 | | ApexCharts | 471 KB | --- ms | 2070 25 2 76 | 154 MB 95 MB | 8593 713 106 174 | | ZingChart | 856 KB | 2476 ms | 2640 7 1 47 | 140 MB 111 MB | --- | | amCharts | 1200 KB | 5564 ms | 6057 40 11 80 | 235 MB 231 MB | 6309 650 248 375 |
size
includes the lib itself plus any dependencies required to render the benchmark, e.g. Moment, jQuery, etc.TODO (all of these use SVG, so performance should be similar to Highcharts):
FAQs
A small, fast chart for time series, lines, areas, ohlc & bars
The npm package uplot receives a total of 93,883 weekly downloads. As such, uplot popularity was classified as popular.
We found that uplot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.