Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
react-highcharts
Advanced tools
Highcharts component for react.
You can find the full code for the examples here
To run the demo:
npm install
npm run demo
npm install react-highcharts --save
var React = require('react');
var Highcharts = require('react-highcharts');
var config = {
/* HighchartsConfig */
};
React.render(<Highcharts config = {config}></Highcharts>, document.body);
For access to methods & properties from the Highcharts library you can use Highcharts.Highcharts
. For example, the Highcharts options are available via Highcharts.Highcharts.getOptions()
.
Highcharts provides an API for manipulating a chart after the initial render. See the Methods and Properties in the documentation. Here's how you access it:
class MyComponent extends React.Component {
componentDidMount() {
let chart = this.refs.chart.getChart();
chart.series[0].addPoint({x: 10, y: 12});
}
render() {
return <Highcharts config={config} ref="chart"></Highcharts>;
}
}
Rerendering a highcharts graph is expensive. You can pass in a isPureConfig
option to the Highcharts
component, which will keep the highcharts graph from being updated so long as the provided config
is referentially equal to its previous value.
Just require require('react-highcharts/more');
instead of react-highcharts
Just require require('react-highcharts/highstock');
instead of react-highcharts
Install new highcharts version.
npm unistall highcharts-release --save-dev
npm install highcharts-release --save-dev
Increment the react-highcharts
version such that a patch, minor release, or major release of
Higcharts is reflected in a corresponding version increase for react-highcharts
.
Run npm tests
FAQs
React wrapper for highcharts
The npm package react-highcharts receives a total of 0 weekly downloads. As such, react-highcharts popularity was classified as not popular.
We found that react-highcharts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.