Gathering detailed insights and metrics for highcharts-react-official-fix
Gathering detailed insights and metrics for highcharts-react-official-fix
Gathering detailed insights and metrics for highcharts-react-official-fix
Gathering detailed insights and metrics for highcharts-react-official-fix
The official Highcharts supported wrapper for React
npm install highcharts-react-official-fix
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1,144 Stars
170 Commits
110 Forks
23 Watchers
11 Branches
53 Contributors
Updated on Jul 13, 2025
Latest Version
2.0.0
Package Id
highcharts-react-official-fix@2.0.0
Unpacked Size
188.31 kB
Size
46.30 kB
File Count
18
NPM Version
6.4.1
Node Version
11.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
22
Official minimal Highcharts wrapper for React.
Make sure you have node, NPM and React up to date. Tested and required versions:
Get package from NPM in your React app:
1npm install highcharts-react-official
Import into your React project and render a chart:
1import React from 'react' 2import { render } from 'react-dom' 3import Highcharts from 'highcharts' 4import HighchartsReact from 'highcharts-react-official' 5 6const options = { 7 title: { 8 text: 'My chart' 9 }, 10 series: [{ 11 data: [1, 2, 3] 12 }] 13} 14 15const App = () => <div> 16 <HighchartsReact 17 highcharts={Highcharts} 18 options={options} 19 /> 20</div> 21 22render(<App />, document.getElementById('root'))
1import React from 'react' 2import { render } from 'react-dom' 3import Highcharts from 'highcharts/highstock' 4import HighchartsReact from 'highcharts-react-official' 5 6const options = { 7 title: { 8 text: 'My stock chart' 9 }, 10 series: [{ 11 data: [1, 2, 3] 12 }] 13} 14 15const App = () => <div> 16 <HighchartsReact 17 highcharts={Highcharts} 18 constructorType={'stockChart'} 19 options={options} 20 /> 21</div> 22 23render(<App />, document.getElementById('root'))
1import React from 'react' 2import { render } from 'react-dom' 3import Highcharts from 'highcharts' 4import HC_map from 'highcharts/modules/map' 5import HighchartsReact from 'highcharts-react-official' 6 7// init the module 8HC_map(Highcharts) 9 10// instead of import + init you could use require as: 11// require('highcharts/modules/map')(Highcharts) 12// the same applies to any other Highcharts module 13 14const options = { 15 title: { 16 text: 'My map chart' 17 }, 18 series: [{ 19 // any meaningful map data is much larger, 20 // but it should go in here 21 data: [1, 2, 3] 22 }] 23} 24 25const App = () => <div> 26 <HighchartsReact 27 highcharts={Highcharts} 28 constructorType={'mapChart'} 29 options={options} 30 /> 31</div> 32 33render(<App />, document.getElementById('root'))
Available options:
1 <HighchartsReact 2 options={options} 3 highcharts={Highcharts} 4 constructorType={'mapChart'} 5 allowChartUpdate={update} 6 updateArgs={[true, true, true]} 7 callback={this.chartCallback} 8 />
Highcharts chart configuration object. Please refer to the Highcharts API documentation. This option is required.
Used to pass the Highcharts instance after modules are initialized. If not set the component will try to get the Highcharts from window.
String for constructor method, defaults to 'chart'
. Other official constructors are:
'stockChart'
for Highstock charts'mapChart'
for Highmaps chartsIf you have added a module or a plugin that adds new constructor then you can use it and set using this property.
This wrapper uses chart.update()
method to apply new options to the chart when changing the parent component.
Option allowChartUpdate
allow to turn off the updating. This options is optional, defaults to true
.
Array of update()
's function optional arguments. Parameters should be defined in the same order like in native Highcharts function: [redraw, oneToOne, animation]
, in this wrapper defaults to [true, true, true]
. Here is a more specific description of the parameters. This option is optional.
A callback function for the created chart. First argument for the function will hold the created chart
. Default this
in the function points to the chart
. This option is optional.
Create custom component ./components/MyStockChart.jsx
:
1import React from 'react' 2import Highcharts from 'highcharts/highstock' 3import HighchartsReact from 'highcharts-react-official' 4 5const options = { 6 title: { 7 text: 'My stock chart' 8 }, 9 series: [{ 10 data: [1, 2, 3] 11 }] 12} 13 14const MyStockChart = () => <HighchartsReact 15 highcharts={Highcharts} 16 constructorType={'stockChart'} 17 options={options} 18/> 19 20export default MyStockChart
Render your custom chart component like below:
1import React from 'react' 2import { render } from 'react-dom' 3import MyStockChart from './components/MyStockChart.jsx' 4 5const App = () => <div> 6 <MyStockChart /> 7</div> 8 9render(<App />, document.getElementById('root'))
Clone github repository and install dependencies:
1git clone https://github.com/highcharts/highcharts-react 2cd highcharts-react 3npm install
Examples and tests require Highcharts library, don't forget to:
1npm install highcharts
There are several interesting examples in the demo folder that use all available constructors and a few modules.
Bundle these with:
1npm run build-demo
Demo is located under demo/index.html
This wrapper contains tests for: testing environment, chart rendering and passing down container props. To run tests, type:
1npm run test
Technical support will help you with Highcharts and the wrapper.
If you have a bug to report or an enhancement suggestion please submit Issues in this repository.
The NPM package is registered as highcharts-react-official
because highcharts-react
was already taken.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
2 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 9
Reason
license file detected
Details
Reason
Found 7/23 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More