{"id":13481328,"url":"https://github.com/esbullington/react-d3","last_synced_at":"2025-12-30T06:04:21.328Z","repository":{"id":22630708,"uuid":"25973357","full_name":"esbullington/react-d3","owner":"esbullington","description":"Modular React charts made with d3.js","archived":true,"fork":false,"pushed_at":"2016-06-07T08:22:56.000Z","size":4407,"stargazers_count":1752,"open_issues_count":14,"forks_count":179,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-01-04T05:41:47.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://reactiva.github.io/react-d3-website/","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/esbullington.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T14:01:23.000Z","updated_at":"2024-12-27T01:25:30.000Z","dependencies_parsed_at":"2022-08-21T09:00:32.713Z","dependency_job_id":null,"html_url":"https://github.com/esbullington/react-d3","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esbullington%2Freact-d3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esbullington%2Freact-d3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esbullington%2Freact-d3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esbullington%2Freact-d3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esbullington","download_url":"https://codeload.github.com/esbullington/react-d3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234563124,"owners_count":18853056,"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-31T17:00:50.894Z","updated_at":"2025-09-28T21:30:22.553Z","avatar_url":"https://github.com/esbullington.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Framework-Specific Libraries","Charts","Uncategorized"],"sub_categories":["React","Uncategorized"],"readme":"##  Update\n\n**Important update:**  \n\nThe actively maintained fork of this project is now at the Github of react-d3 co-creator `yang-wei`, who has recently taken the lead in maintaining the project and moving toward 1.0.\n\nYang Wei's fork is located [here](https://github.com/yang-wei/rd3).\n\n### react-d3\nModular ReactJS charts made using d3 chart utilities. Work on project documentation has started [here](https://github.com/esbullington/react-d3/wiki). A few examples of the available charts can be seen below, the others can be [viewed here](https://reactiva.github.io/react-d3-website/), side-by-side with the React code that generates the charts.\n\n![react-d3 chart images](https://raw.githubusercontent.com/esbullington/react-d3-website/gh-pages/img/multiseries.png)\n\n[![Build Status](https://travis-ci.org/esbullington/react-d3.svg?branch=master)](https://travis-ci.org/esbullington/react-d3)\n\n### Version\n[![npm version](https://badge.fury.io/js/react-d3.png)](https://www.npmjs.com/package/react-d3)\n\n### Basic usage\n\nFirst, install via `npm`:\n\n`npm install react-d3`\n\nThen, import into your ReactJS project:\n\n```\nvar rd3 = require('react-d3');\n// es6\nimport rd3 from 'react-d3';\n```\n\nThe charts are then available under the `rd3` namespace, which you can then use as shown on the [demonstration page](https://reactiva.github.io/react-d3-website/):\n\nIf you don't wish to pull in all the charts, you can also require single chart:\n\n```\nvar BarChart = require('react-d3/barchart').BarChart;\n// es6\nimport { BarChart } from 'react-d3';\n```\n\n### Available Charts\n\n```\nvar BarChart = rd3.BarChart;\nvar LineChart = rd3.LineChart;\nvar PieChart = rd3.PieChart;\nvar AreaChart = rd3.AreaChart;\nvar Treemap = rd3.Treemap;\nvar ScatterChart = rd3.ScatterChart;\nvar CandleStickChart = rd3.CandleStickChart;\n```\n\nFor usage, please see [here](https://reactiva.github.io/react-d3-website/).  [API documentation](https://github.com/esbullington/react-d3/wiki/API) is also coming online over the coming days.\n\n### JSFiddle\nThere's a development build available for experimentation on JSFiddle: [http://jsfiddle.net/esbullington/jp9dkh1g/](http://jsfiddle.net/esbullington/jp9dkh1g/).\n\nPlease note that this build should probably not be used in production, since it bundles all of react-d3's dependencies in a single bundle (this is also the cause of the \"Cannot read property 'firstChild' of undefined\" error message on the JS console, which occurs when there are two React libraries in the same namespace).\n\nAll the react-d3 charts are available in this JSFiddle fork under the global `rd3` namespace.\n\n### Background\nAlthough there have been [several](http://nicolashery.com/integrating-d3js-visualizations-in-a-react-app/) [different](http://bl.ocks.org/milroc/d22bbf92231876505e5d) approaches proposed for combining the power of d3 with the flexibility and modularity of ReactJS, the approach I'm using here was inspired by [this blog post](http://10consulting.com/2014/02/19/d3-plus-reactjs-for-charting/) by Ben Smith of [Binary Consulting](http://10consulting.com/).\n\nWith this approach, React itself is responsible for generating the SVG markup.  d3.js is used for its tremendous collection of utility functions, such as those that calculate the `path` value for various chart types.\n\n### Roadmap\n\nFor current roadmap, please see Yang Wei's fork at: https://github.com/yang-wei/rd3\n\n### License\nMIT\n\nCopyright (c) 2014-2015 Eric. S Bullington, Lim Yang Wei, and project [contributors](https://github.com/esbullington/react-d3/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesbullington%2Freact-d3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesbullington%2Freact-d3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesbullington%2Freact-d3/lists"}