Is there a way to make a pie chart with Tikz so that the labels are not numbers (e.g. 30/70 in my example) but the labels are displayed as variables (e.g. omega and 1- omega)?
Here is what I currently have:
\begin{tikzpicture}
\pie{30/Stock, 70/Bond}
\end{tikzpicture}
I do not want it to say 30/70, and want to be able to label it with a Greek letter instead.
Best Answer
To answer your original question, I don't know if there is any built-in method in
pgf-pie
to have only textual labels and not the numbers, but it is possible to patch the macro responsible for making a slice to achieve that:If you want to use the code from the example Alan mentioned, you'll need to modify it to use a third loop variable, for defining the colour. I indicated in the code where I made modifications.
Finally, for a simple two-part pie here is one way of doing it from scratch.