At this address Label Points in a circle in tikz you can see the code to divide a circle into x cells. How to write a phrase into each cell of the divided circle?
If we take the solution from Tom to the question you linked, we can easily extend it to do what you want.
We use the exact same construct to place the numbers at the end to draw some text into the slices, So we place the node not at the end of the arc, but halfway between the center of the circle and the arc. All that is added is this line:
You can play around with the rotation and the precise positioning to get exactly what you want.
The output looks like this:
Update If you want to add different phrases, the code needs to be modified a little bit, since you now need to keep track of two things in the for loop (the count and the phrase). You can do this as follows:
Which looks like this:
Here is the modified output from my answer that prints an item in each of the circle segments. The following code uses a purely
The following code uses a different list-processing macro
@wh1t3 was sure faster (by a tiny bit) ;) and my solution is very similar (I also built on the code posted at the link in the question), but mine differs in that you can pass the array of text as an argument:
You may not that it is not necessary to have the text array elements (separated by commas) between braces, unless they contain commas. Also, if the number of text elements is less than the actual number of pie slices, the 'empty' slices will not be drawn.
EDIT: To wrap the text according to the size of the pie chart, the last line of the
|show 4 more comments|