更新时间:2021-07-23 15:50:47
封面
版权信息
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. Getting Started with D3.js
Introduction
Setting up a simple D3 development environment
Setting up an NPM-based development environment
Understanding D3-style JavaScript
Chapter 2. Be Selective
Selecting a single element
Selecting multiple elements
Iterating through a selection
Performing subselection
Function chaining
Manipulating the raw selection
Chapter 3. Dealing with Data
Binding an array as data
Binding object literals as data
Binding functions as data
Working with arrays
Filtering with data
Sorting with data
Loading data from a server
Chapter 4. Tipping the Scales
Using quantitative scales
Using the time scale
Using the ordinal scale
Interpolating a string
Interpolating colors
Interpolating compound objects
Implementing a custom interpolator
Chapter 5. Playing with Axes
Working with basic axes
Customizing ticks
Drawing grid lines
Dynamic rescaling of axes
Chapter 6. Transition with Style
Animating a single element
Animating multiple elements
Using ease
Using tweening
Using transition chaining
Using transition filter
Listening to transitional events
Working with timer
Chapter 7. Getting into Shape
Creating simple shapes
Using a line generator
Using line interpolation
Changing line tension
Using an area generator
Using area interpolation
Using an arc generator
Implementing arc transition
Chapter 8. Chart Them Up
Creating a line chart
Creating an area chart
Creating a scatter plot chart
Creating a bubble chart
Creating a bar chart
Chapter 9. Lay Them Out
Building a pie chart
Building a stacked area chart
Building a treemap
Building a tree
Building an enclosure diagram
Chapter 10. Interacting with your Visualization
Interacting with mouse events
Interacting with a multi-touch device
Implementing zoom and pan behavior
Implementing drag behavior
Chapter 11. Using Force
Using gravity and charge
Generating momentum
Setting the link constraint
Using force to assist visualization
Manipulating force
Building a force-directed graph
Chapter 12. Know your Map
Projecting the US map
Projecting the world map
Building a choropleth map
Chapter 13. Test Drive your Visualization