MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Pie Chart - Labeled Input

  • To: mathgroup at
  • Subject: [mg120598] Pie Chart - Labeled Input
  • From: Don <donabc at>
  • Date: Sat, 30 Jul 2011 06:02:29 -0400 (EDT)
  • Delivered-to:

I am trying to generalize the following
PieChart function where I can programmatically
change the number of labeled pieces in the pie.

PieChart[{Labeled[1,"label 1","VerticalCallout"],Labeled[2,"label

For e.g. given the following three lists, how can one form the input
that the Pie Chart function above expects?

lst1 = {1,2,3}
lst2 =  {"label 1", "label 2", "label 3"}
lst3 = Table["VerticalCallout", {Length[lst1]}]

For e.g. if one makes a single list of the three lists above
and then tries to map the Labeled function over each
element of this single list,  a syntax error is generated:

(1) singleList =  Flatten[#]& /@ Transpose[{lst1,

(2) Labeled[#]& /@ singleList

Mathematica does not like statement 2 because Labeled is expecting
more than one input.  The obvious direct "solution" above is a


  • Prev by Date: extra lines in framed plots?
  • Next by Date: Re: FinancialData still broken
  • Previous by thread: Re: extra lines in framed plots?
  • Next by thread: Re: Pie Chart - Labeled Input