-
Notifications
You must be signed in to change notification settings - Fork 0
Pie Layout
mbostock edited this page Jul 3, 2011
·
15 revisions

# 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])