Interactive Data Visualization for the Web
An Introduction to Designing with D3
Publisher: O'Reilly Media
Release Date: March 2013
Pages: 272
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
Create and publish your own interactive data visualization projects on the Web—even if you have little or no experience with data visualization or web development. It’s easy and fun with this practical, hands-on introduction. Author Scott Murray teaches you the fundamental concepts and methods of D3, a JavaScript library that lets you express data visually in a web browser. Along the way, you’ll expand your web programming skills, using tools such as HTML and JavaScript.
This step-by-step guide is ideal whether you’re a designer or visual artist with no programming experience, a reporter exploring the new frontier of data journalism, or anyone who wants to visualize and share data.
- Learn HTML, CSS, JavaScript, and SVG basics
- Dynamically generate web page elements from your data—and choose visual encoding rules to style them
- Create bar charts, scatter plots, pie charts, stacked bar charts, and force-directed layouts
- Use smooth, animated transitions to show changes in your data
- Introduce interactivity to help users explore data through different views
- Create customized geographic maps with data
- Explore hands-on with downloadable code and over 100 examples
Table of Contents
-
Chapter 1 Introduction
-
Why Data Visualization?
-
Why Write Code?
-
Why Interactive?
-
Why on the Web?
-
What This Book Is
-
Who You Are
-
What This Book Is Not
-
Using Sample Code
-
Thank You
-
-
Chapter 2 Introducing D3
-
What It Does
-
What It Doesn’t Do
-
Origins and Context
-
Alternatives
-
-
Chapter 3 Technology Fundamentals
-
The Web
-
HTML
-
DOM
-
Developer Tools
-
Rendering and the Box Model
-
CSS
-
JavaScript
-
SVG
-
A Note on Compatibility
-
-
Chapter 4 Setup
-
Downloading D3
-
Referencing D3
-
Setting Up a Web Server
-
-
Chapter 5 Data
-
Generating Page Elements
-
Binding Data
-
-
Chapter 6 Drawing with Data
-
Drawing divs
-
The Power of data()
-
Drawing SVGs
-
Making a Bar Chart
-
Making a Scatterplot
-
Next Steps
-
-
Chapter 7 Scales
-
Apples and Pixels
-
Domains and Ranges
-
Normalization
-
Creating a Scale
-
Scaling the Scatterplot
-
Refining the Plot
-
Other Methods
-
Other Scales
-
-
Chapter 8 Axes
-
Introducing Axes
-
Setting Up an Axis
-
Cleaning It Up
-
Check for Ticks
-
Y Not?
-
Final Touches
-
Formatting Tick Labels
-
-
Chapter 9 Updates, Transitions, and Motion
-
Modernizing the Bar Chart
-
Updating Data
-
Transitions
-
Other Kinds of Data Updates
-
-
Chapter 10 Interactivity
-
Binding Event Listeners
-
Introducing Behaviors
-
Grouping SVG Elements
-
Tooltips
-
Consideration for Touch Devices
-
Moving Forward
-
-
Chapter 11 Layouts
-
Pie Layout
-
Stack Layout
-
Force Layout
-
-
Chapter 12 Geomapping
-
JSON, Meet GeoJSON
-
Paths
-
Projections
-
Choropleth
-
Adding Points
-
Acquiring and Parsing Geodata
-
-
Chapter 13 Exporting
-
Bitmaps
-
PDF
-
SVG
-
-
Appendix Appendix: Further Study
-
Books
-
Websites
-
Twitterers
-
-
Index
-
Colophon