September 2018
Beginner to intermediate
180 pages
3h 58m
English
If you want the pie to have a hole in the center, just adjust the inner radius of the arc() function, as follows:
var arc = d3.arc()
.innerRadius(100) //to make this a donut graph, adjust this value
.outerRadius(radius);The graph will now look as follows:

Read now
Unlock full access