• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4133: Tagclouds rendered by TagMePlugin don't reflect same frequencies correctly

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TagMePlugin Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

In a tag cloud those terms that occur more frequently are bolder than others. That's not the case in TagMePlugin. Try the following:

  1. start with a fresh install
  2. start creating a first tag and tag a topic
  3. create a second tag and tag a topic
  4. create more tags, tag the a topic, and watch the tag clouds at TagMeViewAllTags

So all tags are used only once and therefore the tagcloud should give all terms the same size... which it doesn't.

The reason for that is that all tags are put into an order sorted by frequency. Therefore tags of the same frequency are distinguished arbitrarily. They should be sorted into the same "bucket".

-- TWiki:Main/MichaelDaum - 25 May 2007

With "fresh install", do you mean from svn? Because I made some changes to the count script lately.

-- TWiki:Main.ArthurClemens - 25 May 2007

Fresh as fresh from SVN.

-- TWiki:Main.MichaelDaum - 25 May 2007

any chance of breaking out your tag cloud code into a TagCloudContrib and sharing it between the TagMePlugin and BlogPlugin?

-- WillNorris - 25 May 2007

The arithmetics of computing the tagcloud are completely different in tagme and tagcloud plugin. So porting the code will not be that easy. Frankly, there is no reason to share the perl code. Just use the TagCloudPlugin to render the tags in the TagMePlugin.

-- TWiki:Main.MichaelDaum - 06 Jun 2007

Why is there a need to use bold on more frequently used tags in TagMePlugin? The current implementation looks just right to me.

-- TWiki:Main.PeterThoeny - 06 Jun 2007

Well, in tag clouds more frequently used tags are depicted in a larger font. That's the whole point. This also means that tags of the same frequency are of the same font size ... and that's not the case in TagMePlugin. Try it.

-- TWiki:Main.MichaelDaum - 07 Jun 2007

I see the problem now. Yes, technically same tag count tags should be shown in the same font size. Minor issue that only manifestates itself only in the very beginning of deployment.

I am inclined to set this to "no action required". For now set to "low priority".

-- TWiki:Main.PeterThoeny - 08 Jun 2007

Right, it only manifests on tags of the same frequency...which not only appear with a few tags. That's only to demonstrate the problem. Anytime a set of tags with the same frequency will be ranked as being not of the same frequency. To make it clear: the algorithm that computes the tag cloud is fundamentally flawed. If I was the author of this plugin I'd set this issue to "urgent", but not "low priority" or even "no action required".

-- TWiki:Main.MichaelDaum - 08 Jun 2007

I believe I have a better algorithm now. Re-open if more work is needed.

-- TWiki:Main.ArthurClemens - 10 Jun 2007

Thanks Arthur for improving the algorithm!

-- TWiki:Main.PeterThoeny - 11 Jun 2007

... introduced an illega division by zero

-- TWiki:Main.MichaelDaum - 11 Jun 2007

ItemTemplate
Summary Tagclouds rendered by TagMePlugin don't reflect same frequencies correctly
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range TWiki-4.1.2, Fri, 18 May 2007, build 13796
AppliesTo Extension
Component TagMePlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:14080
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2007-06-11 - TWikiUserMapping_MichaelDaum
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback