it is possible to create treemaps and other graph based diagrams using the DOT language by Graphviz.
see a simple example here
respect max