Gathering detailed insights and metrics for react-jsx-highstock
Gathering detailed insights and metrics for react-jsx-highstock
Gathering detailed insights and metrics for react-jsx-highstock
Gathering detailed insights and metrics for react-jsx-highstock
react-jsx-highcharts
Highcharts charts built using React components
react-jsx-highstock-datepickers
Date Pickers for react-jsx-highstock using react-day-picker
react-jsx-highcharts-fork-temporary
Highcharts charts built using React components - this will be deleted soon, please don't use it
npm install react-jsx-highstock
Typescript
Module System
Node Version
NPM Version
JavaScript (99.67%)
HTML (0.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
422 Stars
1,066 Commits
91 Forks
15 Watchers
13 Branches
15 Contributors
Updated on Jun 20, 2025
Latest Version
5.0.3
Package Id
react-jsx-highstock@5.0.3
Unpacked Size
57.31 kB
Size
15.44 kB
File Count
35
NPM Version
10.9.0
Node Version
22.12.0
Published on
Dec 08, 2024
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
1
3
This package exposes everything from react-jsx-highcharts
, but additionally provides components for building Highstock charts. It is encouraged to familiarize yourself with both READMEs.
N.B. You can build both Highcharts and Highstock charts from this package.
A project for integrating Highcharts into a React app, with proper React components for each Highcharts/Highstock component. Inspired by Recharts, but for Highcharts, obviously.
Unlike other React Highcharts wrapper libraries, React JSX Highcharts is designed to be dynamic - it is optimised for interactive charts that need to adapt to business logic in your React application.
Other Highcharts wrappers completely destroy and recreate the chart when the configuration options change, which is very wasteful and inefficient.
React JSX Highcharts uses a different approach, by providing React components for each Highcharts component, we can observe exactly which prop has changed and call the optimal Highcharts method behind the scenes.
For example, if the data
prop were to change on a <Series />
component, React JSX Highcharts can follow Highcharts best practices and use the setData
method rather than the more expensive update
.
React JSX Highcharts also enables you to write your own Highcharts components, via its exposed hooks.
npm install --save react-jsx-highstock
You'll need the peer dependencies too
npm install --save react react-dom highcharts@^11.0.0
React JSX Highstock is free to use, however Highcharts itself requires a license for commercial use. Highcharts license FAQs.
The intention of this library is to provide a very thin abstraction of Highcharts using React components. This has been achieved by passing Highcharts configuration options as component props.
In the vast majority of cases, the name of the configuration option, and the name of the component prop are the same.
<Tooltip />
component
1<Tooltip padding={10} hideDelay={250} shape="square" split />
This corresponds to the Highcharts' tooltip
configuration of
1tooltip: { 2 enabled: true, // This is assumed when component is mounted 3 padding: 10, 4 hideDelay: 250, 5 shape: 'square', 6 split: true 7}
We aim to pass all configuration options using the same name, so we use Highcharts' documentation to figure out how to achieve the same with React JSX Highcharts.
There are two exceptions to the above;
Where Highcharts events are concerned - instead of passing events
as an object, we use the React convention onEventName.
1<SplineSeries 2 id="my-series" 3 data={myData} 4 onHide={this.handleHide} 5 onShow={this.handleShow} 6/>
This would correspond to the Highcharts configuration
1series: [ 2 { 3 type: 'spline', 4 id: 'my-series', 5 data: myData, 6 events: { hide: this.handleHide, show: this.handleShow } 7 } 8];
text
configuration options are passed as a React child
1<Title>Some Text Here</Title>
This would correspond to the Highcharts configuration
1title: { 2 text: 'Some Text Here'; 3}
1// import Highcharts from 'highcharts/highstock' - Import Highstock from Highcharts 2 3const MyChart = (props) => ( 4 <HighchartsProvider Highcharts={Highcharts}> 5 <HighchartsStockChart> 6 <Chart onClick={this.handleClick} zoomType="x" /> 7 8 <Title>Highstocks Example</Title> 9 10 <Legend> 11 <Legend.Title>Key</Legend.Title> 12 </Legend> 13 14 <Tooltip /> 15 16 <XAxis> 17 <XAxis.Title>Time</XAxis.Title> 18 </XAxis> 19 20 <YAxis> 21 <YAxis.Title>Price</YAxis.Title> 22 <AreaSplineSeries id="profit" name="Profit" data={data1} /> 23 </YAxis> 24 25 <YAxis opposite> 26 <YAxis.Title>Social Buzz</YAxis.Title> 27 <SplineSeries id="twitter" name="Twitter mentions" data={data2} /> 28 </YAxis> 29 30 <RangeSelector> 31 <RangeSelector.Button count={1} type="day">1d</RangeSelector.Button> 32 <RangeSelector.Button count={7} type="day">7d</RangeSelector.Button> 33 <RangeSelector.Button count={1} type="month">1m</RangeSelector.Button> 34 <RangeSelector.Button type="all">All</RangeSelector.Button> 35 <RangeSelector.Input boxBorderColor="#7cb5ec" /> 36 </RangeSelector> 37 38 <Navigator> 39 <Navigator.Series seriesId="profit" /> 40 <Navigator.Series seriesId="twitter" /> 41 </Navigator> 42 </HighchartsStockChart> 43 </HighchartsProvider> 44);
In progress... see here.
For the vast majority of cases, if your chart works in v3 of React JSX Highstock it should work in v4 without any required changes (assuming the React version you're using supports Hooks).
Ok, so what about the minority of cases? Check out the list of breaking changes.
As of 4.x the library has been completely rewritten to use React Hooks (with very few changes to the public API)
As of 3.x you are no longer required to use IDs for Axis, Series and PlotLines/Bands
Uncaught TypeError: Cannot read property 'stockChart' of undefined
You are probably importing Highcharts rather than Highstock. Change you Highcharts import to...
1import Highcharts from 'highcharts/highstock';
Highcharts error #17
You likely need to add an extra Highcharts module to support the requested series type, this is usually Highcharts more.
1import Highcharts from 'highcharts/highstock'; 2import addHighchartsMore from 'highcharts/highcharts-more'; 3 4addHighchartsMore(Highcharts);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
1 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
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