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