Skip to content

zeroviscosity/d3-js-step-by-step

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3.js Step by Step

Check out the tutorial.

NOTE: Examples now target D3 v4.

Here's what changed in this repo from v3 to v4:

  • d3.scale.category20b() became d3.scaleOrdinal(d3.schemeCategory20b)
  • d3.svg.arc() became d3.arc()
  • innerRadius() needs to be explicitly defined so it is now .innerRadius(0) for the pie chart
  • d3.layout.pie() became d3.pie()