I am trying to create a donut chart using json from a local variable (rather than an external file) I have seen this post but am having a hard time adjusting my code in the same
data
d3.json
Complete jsfiddle here. You also need to append your SVG to "body" and not "#body".