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].
b
Which produces
On Nov 3, 2016, at 6:44 AM, Nicolai Hess <[hidden email]> 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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev