{"id":13421942,"url":"https://github.com/kirjs/react-highcharts","last_synced_at":"2025-05-14T18:04:03.263Z","repository":{"id":28511754,"uuid":"32028347","full_name":"kirjs/react-highcharts","owner":"kirjs","description":"React wrapper for Highcharts library","archived":false,"fork":false,"pushed_at":"2022-12-07T12:07:35.000Z","size":2161,"stargazers_count":1254,"open_issues_count":63,"forks_count":232,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-09T23:02:56.548Z","etag":null,"topics":["highcharts","highmaps","highstock","react","react-highcharts"],"latest_commit_sha":null,"homepage":"http://kirjs.github.io/react-highcharts/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kirjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T16:26:47.000Z","updated_at":"2025-03-07T05:53:30.000Z","dependencies_parsed_at":"2022-07-19T03:32:07.493Z","dependency_job_id":null,"html_url":"https://github.com/kirjs/react-highcharts","commit_stats":null,"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirjs%2Freact-highcharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirjs%2Freact-highcharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirjs%2Freact-highcharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirjs%2Freact-highcharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirjs","download_url":"https://codeload.github.com/kirjs/react-highcharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198452,"owners_count":22030964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["highcharts","highmaps","highstock","react","react-highcharts"],"created_at":"2024-07-30T23:00:34.266Z","updated_at":"2025-05-14T18:03:58.254Z","avatar_url":"https://github.com/kirjs.png","language":"JavaScript","funding_links":[],"categories":["UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e","JavaScript"],"sub_categories":["Chart","Data Visualization"],"readme":"react-highcharts\n================\n\n[![Build Status](https://travis-ci.org/kirjs/react-highcharts.svg?branch=master)](https://travis-ci.org/kirjs/react-highcharts)\n\n[Highcharts 6.x.x](https://www.highcharts.com/documentation/changelog) component for react.\nFor highcharts 5.x.x use v. 13.0.0\n\n## Demos\n[react-highcharts](http://kirjs.github.io/react-highcharts/)\n| [react-highcharts/more](http://kirjs.github.io/react-highcharts/more.html)\n| [react-highcharts/highstock](http://kirjs.github.io/react-highcharts/highstock.html)\n| [react-highcharts/highmaps](http://kirjs.github.io/react-highcharts/highmaps.html)\n\nYou can also see [Code for the demo](https://github.com/kirjs/react-highcharts/tree/master/demo) and\n [run demo locally](https://github.com/kirjs/react-highcharts#running-demo)\n\n## Installation\n\n```bash\nnpm install react-highcharts --save\n```\n\n## Licensing\nThe React-Highcharts repository itself is MIT licensed, \nhowever note that this module is dependent on Highcharts.js. For commercial use, you need a valid \n[Highcharts license](http://www.highcharts.com). \n\n## Usage\n#### Webpack/Browserify\n\n```bash\nnpm install react-highcharts highcharts react --save\n```\n\n```jsx\nconst React = require('react');\nconst ReactDOM = require('react-dom');\n\nconst ReactHighcharts = require('react-highcharts'); // Expects that Highcharts was loaded in the code.\n\nconst config = {\n  /* HighchartsConfig */\n};\n\nReactDOM.render(\u003cReactHighcharts config = {config}\u003e\u003c/ReactHighcharts\u003e, document.body);\n```\n\n#### Optional after-render callback\n```jsx\nconst afterRender = (chart) =\u003e { /* do stuff with the chart  */ };\n\u003cReactHighcharts config = {config} callback = {afterRender}\u003e\u003c/ReactHighcharts\u003e\n```\n\n#### Passing properties to the wrapping DOM element\n```jsx\n\u003cReactHighcharts config = {config} domProps = {{id: 'chartId'}}\u003e\u003c/ReactHighcharts\u003e\n```\n\n#### Accessing Highcharts API After Render\nFor access to methods \u0026 properties from the Highcharts library you can use `ReactHighcharts.Highcharts`.\nFor example, the Highcharts options are available via `ReactHighcharts.Highcharts.getOptions()`.\n\nHighcharts provides an API for manipulating a chart after the initial render. See the **Methods and Properties** in [the documentation](http://api.highcharts.com/highcharts). Here's how you access it:\n\n```jsx\nclass MyComponent extends React.Component {\n  componentDidMount() {\n    let chart = this.refs.chart.getChart();\n    chart.series[0].addPoint({x: 10, y: 12});\n  }\n\n  render() {\n    return \u003cReactHighcharts config={config} ref=\"chart\"\u003e\u003c/ReactHighcharts\u003e;\n  }\n}\n```\n\n#### Limiting Highchart Rerenders\nRerendering a highcharts graph is expensive. You can pass in a `isPureConfig` option to the `ReactHighcharts` component, which will keep the highcharts graph from being updated so long as the provided `config` is [referentially equal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators) to its previous value.\nThere is also `neverReflow` property.\n\n#### Rendering on the server with node\nSee this [recipe](https://github.com/kirjs/react-highcharts/blob/master/recipes.md#rendering-react-highcharts-on-node)\n\n## Using highmaps ([demo](http://kirjs.github.io/react-highcharts/highmaps.html))\n\n```javascript\nconst ReactHighmaps = require('react-highcharts/ReactHighmaps');\n```\n\n## Using highstock ([demo](http://kirjs.github.io/react-highcharts/highstock.html))\n```javascript\nconst ReactHighstock = require('react-highcharts/ReactHighstock')\n```\n\n## Using highcharts modules/add-ons like exporting, data, etc. ([demo](http://kirjs.github.io/react-highcharts/more.html))\nUse `highcharts-more` npm package.\n```javascript\nconst ReactHighcharts = require('react-highcharts')\nrequire('highcharts-more')(ReactHighcharts.Highcharts)\n```\n\nYou can find the full list [here](https://github.com/kirjs/publish-highcharts-modules/blob/master/modules.md)\n\n## Passing Highcharts instance manually\n```javascript\nconst ReactHighcharts = require('react-highcharts').withHighcharts(ReactHighstock)\n```\n\n\n## For Contributors\n#### Running tests\n\nRun `npm test`\n\n#### Running demo\n\n```bash\ngit clone https://github.com/kirjs/react-highcharts.git\ncd react-highcharts \u0026\u0026 npm install\nnpm run demo\n```\nPoint your browser at [http://localhost:8080](http://localhost:8080)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirjs%2Freact-highcharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirjs%2Freact-highcharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirjs%2Freact-highcharts/lists"}