leeoniya/uPlot
42.9
Weak · 15 November 2026
52.9k
lines of production code
JavaScript
primary language
5
measurements over time
What this system is
Features
Added sample datasets for demos
The demos/data directory now includes CSV files for major tech stocks (AAPL, AMD, AMZN, CSCO, FB, MSFT, QCOM, SBUX, TSLA, ZNGA) containing daily OHLCV data from October–November 2019, a mass spectrum dataset (ms\_spectrum.csv), and a JSON file (results.json) with benchmark performance results for various JavaScript frameworks.
demos/data · high confidence
Expanded benchmark suite with new third-party charting libraries
The benchmark directory now includes performance demo pages for ApexCharts, CanvasJS, D3 v7.9.0, ECharts v6.1.0, Flot, Highcharts (with Boost module), LightningChart® JS v4.0.2, Plotly.js v2.18.2, ZingChart, and amCharts5, alongside updated demos for Chart.js v4.5.1. These additions allow users to compare rendering performance against a wider range of popular JavaScript charting libraries using the same server metrics dataset.
bench · high confidence
New bar chart plugin and data processing utilities for demos
The demos library now includes a comprehensive bar chart plugin (\barChartPlugin\) that supports vertical and horizontal orientations, grouped and stacked bars, and configurable distribution modes (SPACE\_BETWEEN, SPACE\_AROUND, SPACE\_EVENLY) for both groups and individual bars. This plugin integrates with helper utilities for hover interaction (\barHover\), value label rendering with contrast-aware text sizing (\barValues\), and group-wide series totals (\barTotals\). Additionally, new utility modules have been added for data processing and visualization: \ASAP-optimized.js\ provides an FFT implementation for signal processing demos, \ASAP-simple.js\ offers data smoothing via Simple Moving Average and kurtosis-based window selection, \dbscan1d.js\ implements 1D DBSCAN clustering for outlier detection, and \d3CanvasAligned.js\ provides a D3-based canvas rendering alternative for comparing axis ranging behaviors.
demos/lib · high confidence
New benchmark and audit scripts for performance analysis
Added a suite of Node.js scripts to the \scripts/\ directory to support performance benchmarking and regression auditing. These include \analyze-benchmarks-process-memory.mjs\, \analyze-benchmarks-raf.mjs\, and \analyze-benchmarks-trace.mjs\ for processing and summarizing memory, rAF timing, and Chrome trace data respectively. Additional scripts like \bench-asinh-scan.mjs\, \bench-axis-overflow.mjs\, \bench-browser-process.mjs\, \bench-demo-sources.mjs\, and \bench-fixed-dec.mjs\ provide targeted benchmarks for specific features such as adaptive arc-sinh scales, axis overflow calculations, browser process management, demo source loading, and fixed-decimal generation. The \audit-grafana-scales.mjs\ script allows comparing current uPlot scale behavior against a historical Grafana revision to detect regressions.
scripts · high confidence
Behavioural changes
Demo data consolidated into a single JSON file
The demo's dataset has been merged from multiple individual JSON files into a single \data.json\ file. This change simplifies the data structure for the demo, likely reducing the number of network requests or file operations required to load the visualization data.
demo · high confidence
Library renamed from Plotty to uPlot with build and configuration updates
The library has been renamed from Plotty to uPlot, reflected in the source file (src/uPlot.js), the public API namespace, and the distribution outputs (uPlot.esm.js, uPlot.cjs.js, uPlot.iife.js). The build system has been updated to use @rollup/plugin-terser instead of the deprecated rollup-plugin-terser, and the JavaScript transpiler has switched from buble to native ES modules. Additionally, new configuration files have been added: .editorconfig for consistent coding style, jsconfig.json for IDE support, bunfig.toml for the Bun runtime, and a new bun.lock dependency lockfile.
(repo-wide) · high confidence
Library renamed to uPlot with new DOM structure and CSS classes
The library has been renamed from Plotty to uPlot. This introduces a new DOM structure and CSS class names (prefixed with \u-\), a new \uPlot.css\ stylesheet, and a new \dom.js\ module for DOM utilities. The old \plotty.js\ and \plotty.css\ files have been removed.
src · high confidence
New and updated demo applications
The demos directory has been significantly expanded and modernized with new examples including Add/Delete Series, Annotations, ArcSinh Scales, Axis Autosize, Axis Control, Axis Indicators, Axis Label Rotation, and Axis Range Alignment. Many demos have been refactored to use the new \renderDemo\ harness and ESM module imports, while others have been updated to reflect API changes such as \series.stroke\ and \opts.padding\.
demos · high confidence
New issue reproduction demos for scale range and scan behavior
Added eight new HTML demos in the \demos/issues\ directory that reproduce specific GitHub issues related to uPlot's scale configuration. These examples illustrate how to configure \scan\ (to disable or customize Y extrema scans), \auto\ (to control automatic range recalculation during zooms and resets), and \range\ (for static or dynamic bounds). The demos cover scenarios such as dynamic backend ranges, per-instance export resolution, automatic reset versus explicit zoom, candidate range calculation, fixed auto-false bounds, fixed-range boundary strokes, full-domain scanning, and resetting static ranges.
demos/issues · high confidence
Refactored path builders with new interpolation and bar rendering capabilities
The path-building logic in src/paths has been restructured into modular, purpose-specific files (bars, linear, stepped, spline, points) to improve maintainability and performance. This change introduces a new monotone cubic spline interpolation algorithm (replacing the previous centripetal Catmull-Rom variant) to prevent overshooting in line charts. A completely rewritten bars path builder now supports advanced features including configurable bar radius, custom alignment, gap handling, and per-bar fill/stroke colors via the disp option. Additionally, the stepped path builder gained new options to extend lines to plot extents and control ascender/descender rendering at gap boundaries.
src/paths · high confidence
Simplifies dashboard chart configurations and removes unused empty-chart helpers
The dashboard benchmark adapters now use simplified, default-friendly chart configurations: tooltips are enabled by default, legends are moved to the top, and visual customizations like line thickness, font sizes, and interactive features (zoom, pan) are removed to reduce noise. Additionally, the \makeEmptyChart\ helper function has been removed from all single-chart benchmark adapters, as it is no longer used. Also in this area: Benchmark harness adds resize and hover measurement capabilities.
bench/dashboard · high confidence
Vendored ESTree-based code instrumenter replaces Istanbul/Babel for faster coverage
The project now uses a vendored, ESTree-based JavaScript instrumenter in \scripts/vendor/istanbul\ (derived from \istanbul-lib-instrument@6.0.3\) instead of the previous Istanbul tooling that depended on Babel. This change drops the Istanbul and its transitive Babel dependencies, resulting in faster instrumentation with fewer dependencies. The new instrumenter uses Meriyah for parsing and Astring for code generation, retaining the Istanbul coverage schema and helper naming. It exposes \createInstrumenter()\, \instrumentSync()\, \instrument()\, \lastFileCoverage()\, and \lastSourceMap()\, and supports functions, classes, defaults, branches, loops, ignore directives, custom coverage globals, repeat instrumentation, and generated source maps. It does not support TypeScript, JSX, or Babel plugin transforms, and requires explicit \inputSourceMap\ if composing with an input map. Coverage output remains in \.nyc\_output\ (with Bun writing to \.nyc\_output/bun\), and the existing loader, disk cache, per-process coverage output, and terminal reporter are retained.
scripts/vendor · high confidence
Test coverage
12 commits adding/updating tests in test/integration; 5 commits adding/updating tests in test; Expanded test coverage for axis ranging, asinh transforms, and band drawing; Migrate test suite from Mocha to Node's native test runner.
Dependencies
Upgrade to uPlot v1.6.32 with modernized build tooling
The project has been renamed from plotty to uPlot and updated to version 1.6.32, shifting the build system from Rollup 1 to Rollup 4.63.4 and replacing legacy plugins like rollup-plugin-buble and rollup-plugin-terser with @rollup/plugin-terser. The test infrastructure has been significantly expanded, introducing Mocha 12.0.2 and Happy DOM 20.14.5 for server-side testing, alongside Istanbul for code coverage, replacing the previous placeholder test script. The package is now configured as an ES module with explicit type definitions and a broader set of keywords.
(dependencies) · high confidence
uPlot updated to v1.6.32
The distribution files in dist/ have been updated to version 1.6.32 of the uPlot charting library. This release includes the latest build artifacts (CommonJS, ESM, and IIFE formats) along with updated TypeScript definitions, incorporating recent fixes and improvements to the library's core functionality.
dist · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 42 → 43 (+0.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 47 → 51 (+4.2)
- Architecture 87 → 99 (+12.0)
- Maturity 53 → 53 (-0.2)
- Readiness 28 → 28 (+0.2)
- Security 80 → 61 (-19.8)
- Performance 60 → 60 (+0.0)
Resolved (105)
- FileTooLong: scripts/benchmarks-trace-browser.mjs (scripts/benchmarks-trace-browser.mjs)
- FunctionTooLong: analyze-benchmarks-trace.createTraceAnalyzer (scripts/analyze-benchmarks-trace.mjs)
- FunctionTooLong: bench-instrument.main (scripts/bench-instrument.mjs)
- FunctionTooLong: bench-legend.benchmark (scripts/bench-legend.mjs)
- FunctionTooLong: bench-webgl.createWebGLCapture (scripts/bench-webgl.mjs)
- FunctionTooLong: benchmarks-paths-browser.runCase (scripts/benchmarks-paths-browser.mjs)
- FunctionTooLong: benchmarks-samples.captureBenchmarkSamples (scripts/benchmarks-samples.mjs)
- FunctionTooLong: benchmarks-trace-browser.reportMetadata (scripts/benchmarks-trace-browser.mjs)
- FunctionTooLong: benchmarks-trace.captureBenchmarkTrace (scripts/benchmarks-trace.mjs)
- FunctionTooLong: investigate-g2-webgl-fill.sample (scripts/investigate-g2-webgl-fill.mjs)
- FunctionTooLong: probe-worker.createProbeWorker (scripts/probe-worker.mjs)
- Hotspot: bench/demo-fixture.mjs (bench/demo-fixture.mjs)
- Projects may be oversized for their cohesion
- Tokens.write (cognitive 26) (scripts/bench-trace-stream.mjs)
- Tokens.write (cyclomatic 18) (scripts/bench-trace-stream.mjs)
- TraceJSON.token (cognitive 49) (scripts/bench-trace-stream.mjs)
- TraceJSON.token (cyclomatic 39) (scripts/bench-trace-stream.mjs)
- analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cognitive 33) (scripts/analyze-benchmarks-process-memory.mjs)
- analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cyclomatic 25) (scripts/analyze-benchmarks-process-memory.mjs)
- analyze-benchmarks-process-memory.summarizeProcessMemory (cognitive 20) (scripts/analyze-benchmarks-process-memory.mjs)
- …and 85 more
New (22)
- FunctionTooLong: bars.bars.<returned closure> (src/paths/bars.js)
- FunctionTooLong: points.points.<returned closure> (src/paths/points.js)
- Hotspot: scripts/test.mjs (scripts/test.mjs)
- Hotspot: test/integration/scichart-reduction-browser.mjs (test/integration/scichart-reduction-browser.mjs)
- Hotspot: test/legend-layout.mjs (test/legend-layout.mjs)
- Hotspot: test/legend-selection.mjs (test/legend-selection.mjs)
- Hotspot: test/tooltip.mjs (test/tooltip.mjs)
- bars.bars.<returned closure> (cognitive 54) (src/paths/bars.js)
- bars.bars.<returned closure> (cyclomatic 43) (src/paths/bars.js)
- linear.linear.<returned closure> (cognitive 83) (src/paths/linear.js)
- linear.linear.<returned closure> (cyclomatic 36) (src/paths/linear.js)
- points.points.<returned closure> (cognitive 75) (src/paths/points.js)
- points.points.<returned closure> (cyclomatic 63) (src/paths/points.js)
- redundant comment (test/master-lifecycle-bugs.mjs)
- spline.splineInterp.<returned closure> (cognitive 17) (src/paths/spline.js)
- spline.splineInterp.<returned closure> (cyclomatic 16) (src/paths/spline.js)
- stepped.stepped.<returned closure> (cognitive 32) (src/paths/stepped.js)
- stepped.stepped.<returned closure> (cyclomatic 26) (src/paths/stepped.js)
- uPlot.uPlot::setLegend (cyclomatic 18) (src/uPlot.js)
- uPlot::_commit (cognitive 34) (src/uPlot.js)
- …and 2 more
Changes since last survey
- 16 commits — 15 feature/other, 1 fixes
By area
- test/demos — 5 commits
- dist/uPlot.cjs.js — 2 commits
- (root) — 1 commit
- demos/axis-label-rotation.html — 1 commit
- demos/cursor-tooltip.html — 1 commit
- demos/scatter.html — 1 commit
- demos/y-scale-drag.html — 1 commit
- scripts/test.mjs — 1 commit
- test/integration — 1 commit
- test/plugins — 1 commit
- test/tooling — 1 commit
Notable commits
- fix: fix tests
- change: add option to run tests in parallel
- change: add tooltip, adjust benchmarks, some pocs of interaction canvas layer
- change: build
- change: build
- change: for tests, use 1, 2, or 4 workers depending on availableParallelism
- change: legend & tooltip improvements
- change: make shift+drag demo anchor at start point rather than center
- change: more tooltip demos cleanup
- change: remove legend-as-tooltip plugin, use native tooltip
- change: rewrite candlestick renderer & demo
- change: tooltip refinements / cleanup
- change: transposable legend & tooltip
- change: update deps, switch to use inf constant
- change: use latest chrome, don't pin
- change: when legend.live: false, require explicit valueSrc to render values
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
leeoniya/uPlot was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 133393774373518674e400202bfbc1d4c9067783 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.