Skip to content
mbostock edited this page Jul 3, 2011 · 15 revisions

API ReferenceLayouts

pie

# d3.layout.pie()

# pie(array[, index])

# pie.value([accessor])

Specifies how to extract a value from the associated data; accessor is a function which is invoked on each input value passed to pie, equivalent to calling array.map(accessor) before computing the pie layout. The default value function is the built-in Number, which is similar to the identity function. If accessor is not specified, returns the current value accessor.

# pie.sort([comparator])

# pie.startAngle([angle])

# pie.endAngle([angle])

Clone this wiki locally