Hi,

We're in our local Open Data Day hackathon, creating a treemap to visualize public spending. We have cleaned the dataset and made some queries to zoom into the info we're interested in. So far, so good, but now we would like to change the labels on a treemap. So consider this code:

=============
| b labels |
    b := RTTreeMapBuilder new.
    labels := #('uno' 'dos' 'tres' 'cuatro' 'cinco').
    b shape fillColor: Color random.
    b from: (1 to: 5) using: [#()].
    b weight: [:n | n].
    b build.
    ^ b view.
=============

How can I add the labels from labels to each of shapes of b?

Thanks,

Offray

Reply via email to