I would like to understand the Algorithm/implementation of the tag cloud.
In tag cloud we get following tags(weight)
Now in tag cloud control only subset of the values are displayed with different font sizes. Consider a following sample space tag1(1)... tagx(2) and then few big tags tag2(4000). Now on UI i would like to show the tags (html elements with) fort size. With such a distinct sample one cannot end up showing the big 1000px font. This data needs to be processed to that I get slabs for point concentrations so that I get values say like following:
I am using ASP.NET C#. Please let me know how to achive this. I am really not good at mathematics (statistics). Please help me with this algorithm. Or link to maths/tutorial or good sample would help.
There's a downloadable O'Reilly ebook (40 something pages) called Building Tag Clouds in Perl and PHP that (from what I remember, it was a while ago) had a pretty good cover of the basics and also has (as the title implies) sample implementations in Perl and PHP.
Here's a fairly well explained example from 4 guys from Rolla
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With