Getter/setter for the number of iterations to run the algorithm for. Higher numbers distorts the areas closer to their associated value, at the cost of performance.

20

value([number, string or fn])

Getter/setter for a feature's value accessor. The shape area size is distorted according to this property. Supports either a fixed numeric value, a string indicating the features's object attribute, or a function(feature) which should return a numeric value.

1

color([string or fn])

Getter/setter for a feature's color accessor, used to color the shapes.

lightgrey

label([string or fn])

Getter/setter for a feature's label accessor, used to display a shape's name on its tooltip.

valFormatter([function])

Getter/setter for the number formatter function(n), to show values in the tooltip.

n => n

units([string])

Getter/setter for the value units, to include in the tooltip.

tooltipContent([string or fn])

Getter/setter for a feature's tooltip content accessor. Use this to specify extra content in each of the shape's tooltips in addition to the feature label and value that is included by default.

onClick([function])

Getter/setter for the callback function(feature) to trigger when clicking on a shape.