Showing posts with label cloud. Show all posts
Showing posts with label cloud. Show all posts
Sunday, January 11, 2009
Cloud pt II
So I changed the use of labels in my tag cloud to the use of hyperlinks. I decided to make it work by using a query string which contains the text that you click on. As a result, when the page is reloaded, the term you clicked on is used as a search term. Right now I have to deal with the postback/pageload logic to make sure it doesn't try to search for a null term. The hyperlinks are left justified now but I will figure out a way for them to fill up some container in a nice orderly fashion.
Saturday, December 20, 2008
Cloud
Tonight I'm working on a tag cloud based upon the number of db entries for terms. I use row variables, add them up for each row, sort in ascending order. Then I display the top ten terms inside a panel with label.Font.Size = value for each one's row. So I get size relevancy to the number of times a term was searched. In the future I will have to come up with a scaling factor because I can't have 567 point text.
I actually had to use a decrement in the for loop because I was "rolling down the stack" to make room for the newest highest searched entries.
I actually had to use a decrement in the for loop because I was "rolling down the stack" to make room for the newest highest searched entries.
Subscribe to:
Posts (Atom)