Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
reactochart
Advanced tools
Reactochart is a library of React components for creating data visualization charts and graphs. Components include line chart, bar chart, area chart, heat maps, scatterplot, histogram, pie chart, sankey diagram, and tree map.
npm i reactochart --save
import LineChart from 'reactochart/LineChart';
import { XYPlot, XAxis, YAxis, LineChart } from 'reactochart';
or
import * as Reactochart from 'reactochart';
import 'reactochart/styles.css';
import XYPlot from 'reactochart/XYPlot';
import XAxis from 'reactochart/XAxis';
import YAxis from 'reactochart/YAxis';
import LineChart from 'reactochart/LineChart';
import 'reactochart/styles.css';
const MyFirstLineChart = props => (
<XYPlot>
<XAxis title="Phase" />
<YAxis title="Intensity" />
<LineChart
data={Array(100)
.fill()
.map((e, i) => i + 1)}
x={d => d}
y={d => Math.sin(d * 0.1)}
/>
</XYPlot>
);
results in this:
The examples contain more details about each component and the prop-types it accepts. To run the examples locally and play with the different types of charts in a live code editor:
cd
to the newly-created directorynpm run serve
in your terminal (note: if you're running Python in v3 or higher you'll need to run python -m http.server
)If you'd like to contribute to the development this project, first fork & clone this repo, and then follow these steps:
npm -v
to check if you already have it installed.
If you don't have it, NPM is packaged with Node.js - download and run the
install package located on nodejs.org to install.npm install --global babel
npm install --global webpack
npm install
in the project root directory. This will install all of the project dependencies into the
node_modules
directory.npm run dev
to run the development server (webpack-dev-server), which will serve a live development version of the examples at localhost:9876.src
directory, and/or changes to the examples in the examples/src
directory.react-docgen
.npm run docs
. This allows the documentation build to run with your updated src
code. git add
and git commit
the updated build.git push
to your forked version of the repo.master
. 🎉If you have an app that depends on reactochart and you want to develop locally, follow the following steps:
npm build
and then npm link
npm link reactochart
. If you're using webpack, then you also may need the following config:{
"resolve": {
"symlinks": true,
"alias": {
"react": path.resolve("./node_modules/react"),
"react-dom": path.resolve("./node_modules/react-dom")
}
}
}
lib
or examples/build
directories, as these directories are destroyed and
regenerated on each build.This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.
FAQs
Reactochart - React Charts, graphs and data visualization
The npm package reactochart receives a total of 20 weekly downloads. As such, reactochart popularity was classified as not popular.
We found that reactochart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.