
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@evergreenstash/react-chart
Advanced tools
Do you have something to plot?
I'm the <Chart /> component and I'm really excited about how incredibly awesome your data will look like on my canvas! I'm self-sufficient and provide a bunch of options to custmoize myself for your needs in the most convinient way.
Please, be advised this repo is marked as
in progressand can work unstable.
yarn add @evergreenstash/react-chart
or
npm -i @evergreenstash/react-chart
will do the work :)
All you need to start is to import <Chart /> into project and pass some numeric values to it.
The children are completely optional, some of them can be additionally tuned.
The minimal setup:
import { Chart } from '@evergreenstash/react-chart';
...
const values = [
data.map(item => item.temperature)
];
...
<Chart values={values} />
The complete basic setup:
import { Chart, Line, AxisX, AxisY, Zoom, Tooltips } from '@evergreenstash/react-chart';
...
const values = [
data.map(item => item.temperature),
data.map(item => item.humidity),
];
const dates = data.map(item => item.date);
...
<Chart values={values}>
<Line label="temperature" color="#73A921" />
<Line label="humidity" color="#487AFA" />
<AxisX labels={dates} />
<AxisY />
<Zoom />
<Tooltips />
</Chart>
Check the example folder for more details.
FAQs
react chart component with smooth lines support
We found that @evergreenstash/react-chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.