# react-highcharts-v5

> React.js(v16.x+) component wrap for HighCharts.js(v6.x+)

Latest version **2.0.1** (published 2018-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-highcharts-v5
pnpm add react-highcharts-v5
yarn add react-highcharts-v5
bun add react-highcharts-v5
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-12-01 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 940 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xLsDg |
| Maintainers | xlsdg |
| Keywords | highcharts, library, react, react-highcharts, react-highcharts-v5 |

## Links

- npm: https://www.npmjs.com/package/react-highcharts-v5
- Repository: https://github.com/xlsdg/react-highcharts-v5
- Issues: https://github.com/xlsdg/react-highcharts-v5/issues
- npm.io page: https://npm.io/package/react-highcharts-v5

## Dependencies (2)

- [lodash-es](https://npm.io/package/lodash-es.md) latest
- [element-resize-detector](https://npm.io/package/element-resize-detector.md) latest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2018-12-01
- 2.0.0 — 2018-12-01
- 1.0.8 — 2018-11-24
- 1.0.7 — 2018-02-02
- 1.0.6 — 2018-02-02
- 1.0.5 — 2018-01-25
- 1.0.4 — 2018-01-25
- 1.0.3 — 2018-01-25
- 1.0.2 — 2018-01-25
- 1.0.1 — 2018-01-24

## README

# react-highcharts-v5

> React.js(v16.x+) component wrap for HighCharts.js(v6.x+)

## Installation

```bash
$ npm install --save highcharts react-highcharts-v5
```

## Usage

0. Change webpack config

    For webpack 1.x:

    ```diff
          {
            test: /\.jsx?$/,
            loader: 'babel',
            include: [
    -          path.join(prjRoot, 'src')
    +          path.join(prjRoot, 'src'),
    +          path.join(prjRoot, 'node_modules/react-highcharts-v5/src')
            ],
    -        exclude: /node_modules/
    +        exclude: /node_modules(?![\\/]react-highcharts-v5[\\/]src[\\/])/
          },
    ```

    For webpack 2.x+:

    ```diff
          {
            test: /\.jsx?$/,
            loader: 'babel-loader',
    -       include: [resolve('src'), resolve('test')]
    +       include: [resolve('src'), resolve('test'), resolve('node_modules/react-highcharts-v5/src')]
          }
    ```

1. Import HighCharts

    ```javascript
    import IHighCharts from 'react-highcharts-v5/src/HighCharts.js';

    export default () => {
      const options = {};

      return (
        <IHighCharts
          options={options}
        />
      );
    };
    ```

2. Import HighMaps

    ```javascript
    import IHighCharts from 'react-highcharts-v5/src/HighMaps.js';

    export default () => {
      const options = {};

      return (
        <IHighCharts
          options={options}
        />
      );
    };
    ```

3. Import HighStock

    ```javascript
    import IHighCharts from 'react-highcharts-v5/src/HighStock.js';

    export default () => {
      const options = {};

      return (
        <IHighCharts
          options={options}
        />
      );
    };
    ```

## propTypes

```javascript
className: PropTypes.string,
style: PropTypes.object,
loading: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.bool
]),
theme: PropTypes.object,
resizable: PropTypes.bool,
options: PropTypes.object.isRequired,
onLoad: PropTypes.func,
onResize: PropTypes.func
```

## defaultProps

```javascript
className: 'react-highcharts',
style: {
    width: '100%',
    height: '100%'
},
loading: false,
theme: null,
resizable: false,
onLoad: () => {},
onResize: (w, h) => {}
```

## Demo

[react-highcharts-v5-demo](https://github.com/xlsdg/react-highcharts-v5-demo)

# License

MIT

---
_Source: https://npm.io/package/react-highcharts-v5 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
