Building Tag Cloud (1): Tag Cloud is both easy and hard!

tagrolls.jpg

Building tag cloud can be a very interesting job. There is so many aspects that have to be considered to build a good tag cloud, since tag cloud isn’t intended to make people become more confused.

At the very first beginning, we can take a very simple tag cloud. The specifications of this very simple tag cloud are straightforward:

  1. There are x degrees of font size

So, for an input of list of tags and list of tag occurences, we have to find the maximum value and minimum value of tag occurence. This value will then be substracted and the result will be divided by x, our font size degrees.

Based on the result we can divide the original list of tags into x category and render the tag cloud into the screen. Isn’t it easy?

You will be quite happy with the result… And as you may recognize, most of tag cloud is built with this algorithm.

[continue to the next section]

Another guy has also do the discovery of the perfect tag cloud. Read his experience here.

7 Responses to “Building Tag Cloud (1): Tag Cloud is both easy and hard!”


  1. 1 Oskar Syahbana Oct 15th, 2006 at 8:50 pm

    Since I posted quite a broad range of subjects (well, trading mostly — but alot of stocks), most of my tag clouds have the same size! It’s really not a beauty to watch

  2. 2 Nanda Firdausi Oct 16th, 2006 at 5:50 am

    That’s one of the reasons why tag cloud is hard… we need some optimizations for such cases. Just like in trading, such information can’t give us a clue about our next step.

  1. 1 Building Tag Cloud (2): Limit the tags! at satukubik.net Pingback on Oct 16th, 2006 at 1:52 pm
  2. 2 Building Tag Cloud (3): Tag Cloud on fixed space at satukubik.net Pingback on Oct 18th, 2006 at 9:49 pm
  3. 3 Tag Cloud Pidato Presiden Indonesia - Kaputz - The Blog Pingback on Nov 7th, 2006 at 8:54 pm
  4. 4 satukubik » Blog Archive » Building Tag Cloud (3): Tag Cloud on fixed space Pingback on May 31st, 2007 at 6:43 pm
  5. 5 satukubik » Blog Archive » Building Tag Cloud (2): Limit the tags! Pingback on May 31st, 2007 at 6:44 pm

Leave a Reply