Socket
Socket
Sign inDemoInstall

react-highcharts

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-highcharts - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

dist/bundle/huita.js

2

package.json
{
"name": "react-highcharts",
"version": "5.0.2",
"version": "5.0.3",
"description": "React wrapper for highcharts",

@@ -5,0 +5,0 @@ "main": "dist/highcharts.js",

@@ -38,2 +38,4 @@ react-highcharts

#### Basic Usage
Check out this [recipe](https://github.com/kirjs/react-highcharts/blob/master/recipes.md#using-with-highcharts-release-package)
to see how to install `Highcharts` with `npm`.

@@ -82,2 +84,5 @@ ```jsx

#### Rendering on the server with node
See this [recipe](https://github.com/kirjs/react-highcharts/blob/master/recipes.md#rendering-react-highcharts-on-node)
## Using highmaps

@@ -84,0 +89,0 @@ Require Highmaps first, and then `require('react-highcharts/highmaps');`

@@ -29,1 +29,17 @@ # React-highcharts recipes

```
## Rendering react-highcharts on node.
There is no simple way to render Highcharts in node, so contributions are welcome to this section.
At this point the simplest solution would be to have a node-specific `Highcharts`
[version](https://github.com/kirjs/react-highcharts/blob/master/src/fakeHighcharts.js)
which would do nothing but return an empty `div` when rendered.
```javascript
// In the browser Highcharts comes from the outside. In node we load fake highcharts.
if(!Highcharts){
global.highcharts = require('react-highcharts/src/fakeHighcharts.js');
}
```
Browser will have real Highcharts instead, and would rerender the chart on top of it.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc