25-2.pies 饼

138 阅读1分钟

Pies

Compute the necessary angles to represent a tabular dataset as a pie or donut chart.计算必要的角度,将表格数据集表示为饼图或圆环图。

  • d3.pie - create a new pie generator.创建一个新的饼图生成器。
  • pie - compute the arc angles for the given dataset.计算给定数据集的圆弧角度。
  • pie.value - set the value accessor.设置值访问器。
  • pie.sort - set the sort order comparator.设置排序顺序比较器。
  • pie.sortValues - set the sort order comparator.设置排序顺序比较器。
  • pie.startAngle - set the overall start angle.设置总的起始角度。
  • pie.endAngle - set the overall end angle.设置总的结束角度。
  • pie.padAngle - set the pad angle between adjacent arcs.设置相邻圆弧之间的焊盘角度。