I am not in front of my computer: B view elements @ RTLabelled I think it should do it
Alexandre > Le 5 mars 2016 à 19:44, Offray Vladimir Luna Cárdenas > <offray.l...@mutabit.com> a écrit : > > 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 >