Pack topic

Circle-Packing

Enclosure diagrams use containment (nesting) to represent a hierarchy. The size of the leaf circles encodes a quantitative dimension of the data. The enclosing circles show the approximate cumulative size of each subtree, but due to wasted space there is some distortion; only the leaf nodes can be compared accurately. Although circle packing does not use space as efficiently as a treemap, the “wasted” space more prominently reveals the hierarchical structure.

Classes

Pack<T> Pack
The pack layout produces circle-packing diagrams, where the area of each leaf circle is proportional its value.
Pack<T> Pack
The pack layout produces circle-packing diagrams, where the area of each leaf circle is proportional its value.
Pack<T> Pack
The pack layout produces circle-packing diagrams, where the area of each leaf circle is proportional its value.

Functions

packEnclose<T>(Iterable<PackCircle> circles) PackCircle Pack
Computes the smallest circle that encloses the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius, and circle.x and circle.y properties specifying the circle’s center.
packEnclose<T>(Iterable<PackCircle> circles) PackCircle Pack
Computes the smallest circle that encloses the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius, and circle.x and circle.y properties specifying the circle’s center.
packEnclose<T>(Iterable<PackCircle> circles) PackCircle Pack
Computes the smallest circle that encloses the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius, and circle.x and circle.y properties specifying the circle’s center.
packSiblings(Iterable<PackCircle> circles) Iterable<PackCircle> Pack
Packs the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius.
packSiblings(Iterable<PackCircle> circles) Iterable<PackCircle> Pack
Packs the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius.
packSiblings(Iterable<PackCircle> circles) Iterable<PackCircle> Pack
Packs the specified iterable of circles, each of which must have a circle.r property specifying the circle’s radius.