Gathering detailed insights and metrics for uplot-react
Gathering detailed insights and metrics for uplot-react
Gathering detailed insights and metrics for uplot-react
Gathering detailed insights and metrics for uplot-react
React, Vue.js and Svelte wrappers for uPlot that allow you to work with charts declaratively inside your favorite framework
npm install uplot-react
Typescript
Module System
Min. Node Version
Node Version
NPM Version
94.4
Supply Chain
88.2
Quality
76.6
Maintenance
100
Vulnerability
100
License
TypeScript (44.25%)
JavaScript (37.18%)
Svelte (15.87%)
HTML (2.7%)
Total Downloads
1,005,418
Last Day
940
Last Week
29,130
Last Month
99,152
Last Year
595,206
MIT License
105 Stars
63 Commits
13 Forks
5 Watchers
1 Branches
8 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
1.2.2
Package Id
uplot-react@1.2.2
Unpacked Size
43.12 kB
Size
11.12 kB
File Count
8
NPM Version
9.2.0
Node Version
18.20.1
Published on
Jul 07, 2024
Cumulative downloads
Total Downloads
Last Day
-72.3%
940
Compared to previous day
Last Week
-6.9%
29,130
Compared to previous week
Last Month
60%
99,152
Compared to previous month
Last Year
137.9%
595,206
Compared to previous year
6
React wrapper for uPlot that allows you to work with charts declaratively inside your favorite framework.
Table of Contents
While several other uPlot wrappers already exist, all of them have one of the following limitations:
In comparison this library tries it's best not to recreate the uPlot instance once the props change. Instead of recreation it tries to use uPlot public API to keep it up to date with the props.
Install uplot-react package with uplot dependency:
$ npm install uplot-react uplot
$ yarn add uplot-react uplot
You also need React 16.8 or above to be installed inside your project tree.
1import React from 'react'; 2import uPlot from 'uplot'; 3import UplotReact from 'uplot-react'; 4import 'uplot/dist/uPlot.min.css'; 5 6const Chart = () => 7 (<UplotReact 8 options={options} 9 data={data} 10 target={target} 11 onCreate={(chart) => {}} 12 onDelete={(chart) => {}} 13 />);
See the live demo
You can also run the demo app locally:
$ git clone https://github.com/skalinichev/uplot-wrappers.git
$ cd uplot-wrappers && yarn install && yarn run serveReact
Parameter | Requirement | Description |
---|---|---|
options | required | Options for uPlot. Passed as the first argument to uPlot constructor: new uPlot(options) |
data | required | Data for uPlot. Passed as the second argument to uPlot constructor: new uPlot(options, data) |
target | optional | Target html element or init function for uPlot. Passed as the third argument to uPlot constructor: new uPlot(options, data, target) A new div target element will be created automatically if none is passed in the props |
onCreate | optional | Callback function, invoked upon uPlot instance creation or recreation |
onDelete | optional | Callback function, invoked before uPlot instance gets destroyed, either because the props has changed so much it's impossible to update the chart or because the component is about to be unmounted |
className | optional | A class name passed over to the automatically created target div element. Class name is ignored when the 'target' prop is used. |
resetScales | optional | Flag controlling whether to reset the scales on data change. Defaults to true. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 2
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
57 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More