Resources for learning D3
Please feel free to add detail to this README by making edits and submitting a pull request. In particular it would be helpful to include a) a summary of contents and b) references to pages in Interactive Data Visualization for the Web, 2nd ed.
Link to IDVW source code (2nd edition): https://github.com/alignedleft/d3-book/releases
- Introduction: Selections, transitions, interactivity
d3.select()
,d3.mouse()
.on("click", function() {});
(or"mouseover"
,"mouseout"
)
- Crash course in HTML, CSS, SVG, JavaScript
d3.append()
,d3.remove()
- Add JavaScript/D3 script to an html file
- Store selections in variables
- More on transitions:
delay()
,on("end", function () {});
- Binding data (same # of DOM elements and data values)
- Update, enter, exit selections
- General Update Pattern (enter/append/merge; exit/remove)
- JavaScript functions
- General Update Pattern function
- Add and remove buttons
- Scales
d3.scaleLinear()
,d3.scaleOrdinal()
- Axes
d3.axisTop()
etc. - Margin convention
- Transitions
- Keys
- Object constancy
- Debugging tips
- Line Charts
d3.line()
- Layouts
- Reading Files