List l is controlling the breakdown of the pie chart, so in your graph CL aggregate your student choices:
numberList("L"): aggregate(when MC1.isSelected(1) 1
when MC1.isSelected(2) 2
when MC1.isSelected(3) 3
when MC1.isSelected(4) 4
otherwise 0)
Then, I made P(x) to calculate the percentage of list L that contains a number, x. Then, make the list l = [P(1), P(2), P(3)...]
with however many choices you have. Here:
Pie Chart (Fixed the issue mentioned below)