{"id":13436558,"url":"https://github.com/reactjs/react-chartjs","last_synced_at":"2025-09-30T05:30:27.469Z","repository":{"id":25102506,"uuid":"28523724","full_name":"reactjs/react-chartjs","owner":"reactjs","description":"common react charting components using chart.js","archived":true,"fork":false,"pushed_at":"2022-02-07T10:04:02.000Z","size":133,"stargazers_count":2930,"open_issues_count":73,"forks_count":302,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-05-23T09:22:14.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/reactjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-12-26T23:19:20.000Z","updated_at":"2024-05-01T01:02:07.000Z","dependencies_parsed_at":"2022-07-29T15:09:45.274Z","dependency_job_id":null,"html_url":"https://github.com/reactjs/react-chartjs","commit_stats":null,"previous_names":["jhudson8/react-chartjs"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactjs%2Freact-chartjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactjs%2Freact-chartjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactjs%2Freact-chartjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactjs%2Freact-chartjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactjs","download_url":"https://codeload.github.com/reactjs/react-chartjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234702097,"owners_count":18873829,"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":[],"created_at":"2024-07-31T03:00:50.052Z","updated_at":"2025-09-30T05:30:22.190Z","avatar_url":"https://github.com/reactjs.png","language":"JavaScript","readme":"react-chartjs\n============\n\nrich interactive react charting components using [chart.js](http://www.chartjs.org/) including\n\n* Line chart\n* Bar chart\n* Radar chart\n* Polar area chart\n* Pie chart\n* Doughnut chart\n\n[view chart examples](http://reactjs.github.io/react-chartjs/index.html)\n\nInstallation\n------------\nThis is a CommonJS component only (to be used with something like Webpack or Browserify)\n```\nnpm install --save react-chartjs\n```\nYou must also include [chart.js](https://www.npmjs.com/package/chart.js) and [React](https://www.npmjs.com/package/react) as dependencies.  \n```\nnpm install --save chart.js@^1.1.1 react react-dom\n```  \n\nExample Usage\n-------------\n```javascript\nvar LineChart = require(\"react-chartjs\").Line;\n\nvar MyComponent = React.createClass({\n  render: function() {\n    return \u003cLineChart data={chartData} options={chartOptions} width=\"600\" height=\"250\"/\u003e\n  }\n});\n```\n\n* ```data``` represents the chart data (see [chart.js](https://github.com/chartjs/Chart.js/tree/v1.1.1/docs) for details)\n* ```options``` represents the chart options (see [chart.js](https://github.com/chartjs/Chart.js/tree/v1.1.1/docs) for details)\n* all other parameters will be passed through to the ```canvas``` element\n* if data passed into the component changes, points will animate between values using chart.js' ```.update()```. If you want the chart destroyed and redrawn on every change, pass in ```redraw``` as a prop. For example ```\u003cLineChart data={this.state.chartData} redraw /\u003e```\n\nChart References\n----------------\nThe ```canvas``` element can be retrieved using ```getCanvas``` and the ```chartjs object``` can be retrieved using ```getChart```.\n","funding_links":[],"categories":["Uncategorized","Libraries","JavaScript","UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e"],"sub_categories":["Uncategorized","Charts Libraries","Chart"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactjs%2Freact-chartjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactjs%2Freact-chartjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactjs%2Freact-chartjs/lists"}