score:11

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:

chart
    .append("svg:path")
    .attr("fill", function(d, i){
        return d3.rgb("black");
    })
    .attr("d", arc)
    ;

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

http://jsfiddle.net/findango/aGdMX/2/

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


Related Query

More Query from same tag