block by armollica 97b90b0aa19234b52117ee96dfa38d61

React Scatterplot

Full Screen

Figuring out how to make React and D3 work together.

This blog post by Tom Macwright has some good ideas. The <Axis /> component is adapted from this gist he wrote. The chart is a replication of the example found in the documentation for ggplot2’s facet_wrap() function. The data also come from this R package.

index.html

App.js

Axis.js

Points.js

Scatterplot.js

main.js

mpg.tsv

webpack.config.js