Archeometer.Analysis.Treemap.SVGRender (Archeometer v0.4.2)

Functions to render an Archeometer.Analysis.Treemap struct into a svg image.

Squarified algorithm by Mark Bruls, Kees Huizing, and Jarke J. van Wijk:

Link to this section Summary


Renders a Treemap struct into a svg.

Link to this section Functions

Link to this function

render(tree, ns_sep \\ ".")

Renders a Treemap struct into a svg.

Returns the string representing the generated svg image.

The resulting svg can be written to a file or directly embedded into an HTML.



  • root_node. The Treemap struct with pct: 100 value to be rendered.