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.
samanage-react-chartjs
Advanced tools
rich interactive react charting components using chart.js including
This is a CommonJS component only (to be used with something like Webpack or Browserify)
npm install --save react-chartjs
You must also include chart.js and React as dependencies.
npm install --save chart.js@^1.1.1 react react-dom
var LineChart = require("react-chartjs").Line;
var MyComponent = React.createClass({
render: function() {
return <LineChart data={chartData} options={chartOptions} width="600" height="250"/>
}
});
data
represents the chart data (see chart.js for details)options
represents the chart options (see chart.js for details)canvas
element.update()
. If you want the chart destroyed and redrawn on every change, pass in redraw
as a prop. For example <LineChart data={this.state.chartData} redraw />
The canvas
element can be retrieved using getCanvas
and the chartjs object
can be retrieved using getChart
.
FAQs
react charting components using the chartjs lib R16 ready
The npm package samanage-react-chartjs receives a total of 1 weekly downloads. As such, samanage-react-chartjs popularity was classified as not popular.
We found that samanage-react-chartjs 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.
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.