In this recipe we are going to build a treemap. Treemaps are used to represent the data structure of a tree (nodes that have nodes as children). In this example, we are going to use it more as a rectangular pie chart. Wherever you can use a pie chart, you will be able to use this treemap, but it will give you the ability to use something a bit different.
Open the files in the
Treemap folder in the downloadable code files from www.packtpub.com.
public var color : uint; public var percent : Number; public var label:String; public function ...