react-highcharts
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148742
115
4863611