Venn diagrams are well known for data visualization. They are used to show the intersection between sets of data. As an example, you could have two groups of objects: one object could belong to both groups, while another could only belong to the first group. Venn diagrams help show that relationship. In this recipe, we will demonstrate how to create Venn diagrams that use two, three, and four sets of data.
Reading the Wikipedia page on Venn diagrams could help you to understand the background behind those diagrams: http://en.wikipedia.org/wiki/Venn_diagram.
The following are the steps required to make a Venn diagram:
First we will need to create the building blocks for our Venn diagrams: the circles and ellipse. The following is the code for the ellipses:
public class VennEllipse extends Sprite { public function VennEllipse(circleWidth:Number, color:uint) { graphics.beginFill(color, 0.5); graphics.drawEllipse(-circleWidth/2, ...