[show
older messages in this discussion]
[hide
older]
Tag Cloud Makeup
Some people complained the home page tag cloud became unmanageable big. I gave it small make up and now home page cloud shows only popular tags.
All tags cloud is also available.by dkrukovskyJuly 10, 2006 4:33 PM
2 more in tagcloud suggestion tagging blogoforumRE: Tag Cloud Makeup
What I dislike about current tagclouds is that there is ONE HUGE TAG, and 90% of the remainig tags are very small. It looks like the cloud is 90% trash.
I suggest:
- Filtering out the least frequent tags
- Applying a logarightm function to the tag sizes. It will reduce the graphical domination of the most frequent tags. I did it with my project: http://automatthias.wordpress.com/2006/07/26/size-and-color/ and it works fine.by AutomatthiasAugust 19, 2006 8:10 AM
2 more in tagcloud suggestion tagging blogoforum mathRE: Tag Cloud Makeup Continued
I have to write it for you, because I haven't read it anywhere, I just constructed the equation myself. Here you go:
Let's say you want your your tags in sizes from 1 to 10, according to their counts. I'll use pseudocode here. You define boundaries:
pmin <- 1
pmax <- 10
Then you calculate the min and max values from your tags:
vmin <- min(values)
vmax <- max(values)
Now, let's say you have a tag with 'x' occurences. The log-size of your tag is:
int((pmax - pmin) * (log(x)) / (log(vmax)) + pmin)by AutomatthiasSeptember 17, 2006 7:19 PM
1 more in logarithm tagcloud sizes suggestion tag programming tagging blogoforum size cloud math
Tag Cloud Makeup Thanks to Automatthias
Now that was valuable! I slightly modified the formula to take in account min of values likeint((pmax - pmin) * (log(x - vmin)) / (log(vmax - vmin)) + pmin) and filter out situations like log(0) and log(1) . Take a look at Blogoforum clouds now!If you can, please tell us how did you get to that formula. Thanks Automatthias!
by dkrukovsky
September 18, 2006 3:14 AM+ add to your
Readings [?]
RE: Tag Cloud Makeup Thanks to Automatthias
Yeah, it does look better now!
As for the minimum value -- yes, you're right. I've been tackling this equation for quite a long time, and this was what I've ended up with. I had a reason to remove the minimum value, but I can'r remember anymore what it was. I think it was just something about the look of the tag list in my case.
The log(0) and log(1) situations are present by default, I thought about removing them by shifting min and max a little bit:
vmin = min(values) - 0.5
vmax = max(values) + 0.5
But finally I just added some test against the 0 and 1 values and handled them by assigning pmin and pmax.
I'm glad I could help here.by AutomatthiasSeptember 18, 2006 7:29 AM
in logarithm tagcloud tagging programming blogoforum size math
- Reply
Blogoforum -
del.icio.us