Hi Nicolai,

The api of RTPieBuilder has not been updated.
It is now:

b := RTPieBuilder new.
b objects: (1 to: 10).
b slice: [ :nr | nr squared  ].
b normalizer distinctColor.
b labeled: [:i | i asWords].

Which produces


On Nov 3, 2016, at 6:44 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:

What to use for labeling a pie chart by a block:

| b |
b := RTPieBuilder new.
b objects: (1 to: 10).
b slice: [ :nr | nr squared  ].
b normalizer distinctColor.
b labelled:[:i | i asWords].
b build.
b view

this will raise a deprecation warning, with the info I should use #labelled: instead of #labelled: 
:)


There is no method expecting a single block ? 
Only labeledIf:withBlock:  ?



nicolai
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.