The pies are created in a loop:
for(i=0; i<1500; i++) {
coordinates.push([-180+360*Math.random(), -90+180*Math.random()]);
p = 100*Math.random();
data.push([p, 100-p]);
colors.push(['#'+(0x1000000+(Math.random())*0xffffff).toString(16).substr(1,6), '#'+(0x1000000+(Math.random())*0xffffff).toString(16).substr(1,6)]);
}
and rendered in the canvasFunction
like: