This book is 100% complete
Completed on 2018-01-15
About the Book
React+d3.js ES6 is designed to be short, but comprehensive.
In about an hour, it will guide you through a whole React and d3.js project from start to finish.
Everything from setting up code compilation, to creating reusable visualization components.
Learn how to build reusable visualization components that work anywhere, with any data.
Fly through the code with to-the-point instructions and a healthy dose of interesting banter.
USING REACT WITH D3.JS
Say what you want, not how.
Code once, use everywhere.
Render only the stuff that changes.
Blog Editor- @Piktochart. Shameless nerd & GIF connoisseur. Once owned the city of Murfreesboro for 5 minutes. Pro- Oxford comma.
- Why you should read React + D3v4
What you need to know
- How to read this book
- Why React and D3.js
- Buzzword soup explained
Visualizing data with React and d3.js
- The basic approach
- A quick blackbox example - a D3 axis
- A quick blackbox example - a React+D3 axis
- A D3 blackbox higher order component – HOC
- A color scale
- You’re awesome
State Handling Architecture
- Basic architecture
- A caveat
- Structuring your React app
Set up a local environment with create-react-app
- Make sure you have node.js
- Install create-react-app
- Run create-react-app
- What you get
- Install dependencies for this book
A big example project - 176,113 tech salaries visualized
Show a Preloader
- Step 1: Get the image
- Step 2: Preloader component
- Step 3: Update App
- Step 4: Load Bootstrap styles
Asynchronously load data
- Step 0: Get the data
- Step 1: Prep App.js
- Step 2: Prep data parsing functions
- Step 3: Load the datasets
- Step 4: Tie the datasets together
Render a choropleth map of the US
- Step 1: Prep App.js
- Step 2: CountyMap/index.js
- Step 3: CountyMap/CountyMap.js
- Step 4: CountyMap/County.js
Render a Histogram of salaries
- Step 1: Prep App.js
- Step 2: CSS changes
- Step 3: Histogram component
- Step 4: HistogramBar (sub)component
- Step 5: Axis HOC
Make it understandable - meta info
- Dynamic title
- Dynamic description
- Median household line
Add user controls for data slicing and dicing
- Step 1: Update App.js
- Step 2: Build Controls component
- Step 3: Build ControlRow component
- Step 4: Build Toggle component
- Step 5: Add US state and Job Title filters
- A small speed optimization
- Rudimentary routing
Prep for launch
- Setting up deployment
- Twitter and Facebook cards and SEO
- Full dataset
- Show a Preloader
Using a game loop for rich animation
- A bouncing ball
Using transitions for simple animation
- Rainbow snake
- Animated alphabet
Animating with React, Redux, and d3
- Here’s how it works
- 3 presentation components
- 6 Redux Actions
- 1 Container component
- 1 Redux Reducer
- What we learned
- Using a game loop for rich animation
- Why Canvas
- The trouble with HTML5 Canvas
Declarative HTML5 Canvas with Konva and react-konva
- A particle generator pushed to 20,000 elements with Canvas
- Billiards simulation with MobX and canvas
Using a React alternative like Preact or Inferno
- Stress testing with a recursive fractal
- Trying the stress test in Preact and Inferno
- Using canvas
Appendix A - roll your own environment
- Bundle with Webpack
- Compile with Babel
- NPM for dependencies and tools
- Step-by-step with boilerplate
- Add Less compiling
- Serve static files in development
- Webpack nice-to-haves
- Optionally enable ES7
- Check that everything works
- Remove sample code
- The environment in depth
- That’s it. Time to play!
Appendix B - Browserify-based environment
- NPM for server-side tools
- The development server
- Compiling our code with Grunt
- Managing client-side dependencies with Bower
- Final check
- Appendix A - roll your own environment
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. Free App. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.