Question

How should I get the Rascal treemap to squarify?

Currently it is not squaring correctly as seen in the image below.

Treemap example

In the source code of the Treemap file I can see the comment Based on Mark Bruls; Kees Huizing and Jarke J. vanWijk. "Squarified Treemaps". However I don't see the squarification taking place in the source code.

Do I need to look elsewhere or is it not implemented?

Edit

So I tried this. The most simple example is:

render(
        box(
             treemap(boxes),
             size(500,500)
        )
    );

I minimized the visualization window so it actually is 500x500 (I also tried 250x500 and vice versa).

In all situations it renders favoring rows:

Updated example

Was it helpful?

Solution

The layout is now working as expected as of 2014-01-02

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top