25-1.arcs 弧

413 阅读1分钟

Arcs

Circular or annular sectors, as in a pie or donut chart.圆形或环形扇形,如在饼图或圆环图中。

  • d3.arc - create a new arc generator.创建一个新的弧生成器。
  • arc - generate an arc for the given datum.为给定数据生成一条圆弧。
  • arc.centroid - compute an arc’s midpoint.计算圆弧的中点。
  • arc.innerRadius - set the inner radius.设置内径
  • arc.outerRadius - set the outer radius.设置外径
  • arc.cornerRadius - set the corner radius, for rounded corners.设置圆角的角半径。
  • arc.startAngle - set the start angle.设置起始角度。
  • arc.endAngle - set the end angle.设置结束角度。
  • arc.padAngle - set the angle between adjacent arcs, for padded arcs.为填充圆弧设置相邻圆弧之间的角度。
  • arc.padRadius - set the radius at which to linearize padding.设置要线性化填充的半径。
  • arc.context - set the rendering context.设置渲染上下文。