d3.packSiblings()

d3.packSiblings(circles)

Packs the specified array of circles, each of which must have a circle.r property specifying the circle’s radius. Assigns the following properties to each circle:

  • circle.x - the x-coordinate of the circle’s center
  • circle.y - the y-coordinate of the circle’s center

The circles are positioned according to the front-chain packing algorithm by Wang et al.

doc_D3_Js
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.