O'Reilly logo

ActionScript Graphing Cookbook by Peter Backx, Dominic Gélineau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating tag clouds

Tag clouds are good tools to analyze text. They quickly give a good idea of which topics are being approached by an article or a post.

Creating tag clouds

Getting ready

Open the folder containing the code for this recipe.

How to do it...

The following are the steps required to build a tag cloud:

  1. The first step, which we won't be explaining in this recipe, is to parse a text and get data of how frequently each word occurs. You will probably want to only use the top 50 words and remove propositions and only use nouns.
  2. Create the data structure for this visualization. In this case it is simply a pairing of a label and occurrences (a count of how many times ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required