Accepted answer

your example here doesn't have any data defined. if you just want to draw the svg statically, skip the selectall() and data() bindings:

    .attr("fill", function(d, i){
        return d3.rgb("black");
    .attr("d", arc)

or define some data and use that to drive the drawing:

(plus .attr("fill"... should be .style("fill"...)

Related Query

More Query from same tag