Data Visualization with D3 4.x Cookbook, 2nd Edition
- Length: 199 pages
- Edition: 2nd Revised edition
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2017-04-06
- ISBN-10: 1786468255
- ISBN-13: 9781786468253
- Sales Rank: #1345617 (See Top 100 Books)
Key Features
- Create modern, stunning data visualizations with the new features introduced in D3 4.0
- Bootstrap D3 quickly with the help of ready-to-go code samples
- Solve real-world visualization problems with the help of practical recipes
Book Description
This book gives you all the guidance you need to start creating modern data visualizations with D3 4.x that take advantage of the latest capabilities of JavaScript.
The book starts with the basic D3 structure and building blocks and quickly moves on to writing idiomatic D3-style JavaScript code. You will learn how to work with selection to target certain visual elements on the page, then will see techniques to represente data both in programming constructs and its visual metaphor. You will learn how map values in your data domain to the visual domain using scales, and use the various shape functions supported by D3 to create SVG shapes in visualizations.
Moving on, you’ll see how to use and customize various D3 axes and master transition to add bells and whistles to your otherwise dry visualization. You’ll also learn to work with charts, layout, and build interactive visualizations. Next you’ll work with Force, which is one of the most awe-inspiring techniques you can add to your visualizations, and you’ll implement a fully functional Choropleth map (a special purpose colored map) in D3.
Finally, you’ll learn to unit test data visualization code and test-driven development in a visualization project so you know how to produce high-quality D3 code.
What you will learn
- Get a solid understanding of the D3 fundamentals and idioms
- Use D3 to load, manipulate, and map data to any kind of visual representation on the web
- Create data-driven dynamic visualizations that update as the data does
- Leverage the various layouts provided by D3 to create sophisticated, dynamic, and interactive charts and graphics
- Create data-driven transitions and animations within your visualizations
- Understand and leverage more advanced concepts such as force, touch, and Geo data visualizations
Table of Contents
Chapter 1. Getting Started with D3.js
Chapter 2. Be Selective
Chapter 3. Dealing with Data
Chapter 4. Tipping the Scales
Chapter 5. Playing with Axes
Chapter 6. Transition with Style
Chapter 7. Getting into Shape
Chapter 8. Chart Them Up
Chapter 9. Lay Them Out
Chapter 10. Interacting with Your Visualization
Chapter 11. Using Force
Chapter 12. Knowing Your Map
Chapter 13. Test Drive Your Visualization