label block on pie charts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

label block on pie charts

Nicolai Hess-3-2
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
Reply | Threaded
Open this post in threaded view
|

Re: label block on pie charts

abergel
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 <[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
Reply | Threaded
Open this post in threaded view
|

Re: label block on pie charts

Nicolai Hess


2016-11-03 14:18 GMT+01:00 Alexandre Bergel <[hidden email]>:
Hi Nicolai,

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


Great, thanks!
 
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 <[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



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev