https://github.com/mrblueblue/d3-react-charts
functionally composed d3 react charts
https://github.com/mrblueblue/d3-react-charts
Last synced: 3 months ago
JSON representation
functionally composed d3 react charts
- Host: GitHub
- URL: https://github.com/mrblueblue/d3-react-charts
- Owner: mrblueblue
- Created: 2015-07-21T07:28:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-22T04:09:05.000Z (almost 10 years ago)
- Last Synced: 2025-02-06T01:44:41.689Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## D3 React Charts
A Bar Chart is created with functional composition and a React Bar component.
First, we take a SVG element and compose a D3 Chart out of it.
We then use this chart to compose a Bar Chart. Specifically, we map data to Bar components.
// rough sketch of functional composition!
composeSVG(composeChart(Bars));