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