This function creates a pie chart with data from the variables including custom labels and colours. It is an effective way to present comparable data quickly as a percentage. You can define an inner radius to make the 'pie' become a 'donut'! A legend or key is added by default but just set this to 'false' if it is not needed.
Basic format: "content_name": ["create_pie_chart",
["label1","label2", ...],
["value1","value2", ...],
"location_id", [
"colour1", "colour2", ...],
"width",
"height",
"inner_radius",
"legend",
"href_link"]
e.g: "pie_chart1": ["create_pie_chart", ["val1", "val2", "val3"], ["clip_total", "clip_total", "clip_total+FoulWon"], "#E4", ["red", "grey", "blue"], 300, 300, 50]