An open API service indexing awesome lists of open source software.

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

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));