tag-cloud

How to create a Simple tag cloud? Using C# and Styling with css

亡梦爱人 提交于 2019-12-13 03:59:22
问题 I'm finding it impossible to create a tag cloud, I can't find any walkthrough’s or tutorials. (ones that work at least). I'm just looking for a simple, basic example of a working tag cloud and I can spice it up after that. The best link i found is: http://www.geekzilla.co.uk/View960C74AE-D01B-428E-BCF3-E57B85D5A308.htm But it's out dated and I can't download the source file, and there are many gaps in the code. 回答1: This isn't a really hard problem. Essentially a tag cloud is just a way of

Fit elements into box

走远了吗. 提交于 2019-12-11 20:51:07
问题 I want to achieve the effect shown in the images attached. Given certain items, fit them into a shape (box or something else), with the option to resize the items or not. I know there has to be some algorithm related, but I don't know where to start looking. Any keyword , wikipedia article, or pdf will be welcome. 回答1: The problem, as NKamrath pointed out, was Bin packing problem , but more commonly refered to Texture Packing . Here are the resources I gathered: http://en.wikipedia.org/wiki

Tag cloud control for WinForms .NET 2.0+

≯℡__Kan透↙ 提交于 2019-12-11 03:35:55
问题 How would you render a tag cloud within a .NET 2.0+ WinForm application? One solution that I am thinking of would be using the WebBrowser control and generating to some ad-hoc HTML, but that seems to be a pretty heavy solution. Am I missing something more simple? 回答1: How about creating a user control that implements the Flow layout control? You could have a method for "Add(string tagName)" that would create a link label on the fly and add it to the Flow Layout control. The Flow Layout works

Fitting tag cloud to available space

穿精又带淫゛_ 提交于 2019-12-10 14:33:52
问题 Given words and their frequencies and an area of screen real estate, what are good approaches to fitting a tag cloud to the space? The two variables I can think of to manipulate are: Font sizes (both absolute and the gradient) Number of words Everything approach I can think of requires iteration, like setting an upper bound on the number of words then using binary search on font sizes until the words just fit the area. I'd rather have an analytical solution. One complication of my situation

How can I implement a tag cloud on iPhone?

人走茶凉 提交于 2019-12-10 11:40:22
问题 like this one here: Is there an existing class that I can use? 回答1: You can use some of the string drawing methods to find out how large a frame you need for each tag, and then size a bunch of UILabels to fit each word. As you'll likely want your user to interact with the tags, subclass UILabel to handle touches where appropriate. 来源: https://stackoverflow.com/questions/1408221/how-can-i-implement-a-tag-cloud-on-iphone

Django tag cloud plugin [closed]

蓝咒 提交于 2019-12-09 06:20:28
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Is there a good Django app out there that can take a list of tags and their frequencies of occurrence and render a tag cloud for them?

how to provide a click handler in JQCloud

强颜欢笑 提交于 2019-12-08 21:05:30
I am using JQCloud for building a tagcloud. It's nice and easy and meets my user's visual criteria. I would like to have a click handler invoked when user clicks on a word: var tag_list = new Array(); for ( var i = 0; i < stuff.length; ++i ) { var x = stuff[i]; tag_list.push({ text: x.NAME, weight: x.COUNT, //link: this.mkUrl(x), click: function() { alert("it worked for " + x.NAME); }, html: {title: this.mkTooltip(x)} }); } $("#"+containerdivname).append( $("<div></div>", {id:"wordcloud"})); $("#"+containerdivname).children("#wordcloud").jQCloud( tag_list ); The word cloud renders fine, has

Tag cloud in WPF

断了今生、忘了曾经 提交于 2019-12-08 06:22:23
问题 Anyone knows how to create one? I know this question has been asked before but there was no answer and the provided link was a dead end. EDIT The project I found but couldn't make it work is this: http://alanle.com/wp-content/uploads/2009/12/WPFTagCloud.zip The errors I get are “Assembly must be specified for XAML files that are not part of a project. Reopen this XAML file after adding it to a project, close this file and reopen it using the project it is associated with, or modify the clr

how to provide a click handler in JQCloud

核能气质少年 提交于 2019-12-08 06:09:43
问题 I am using JQCloud for building a tagcloud. It's nice and easy and meets my user's visual criteria. I would like to have a click handler invoked when user clicks on a word: var tag_list = new Array(); for ( var i = 0; i < stuff.length; ++i ) { var x = stuff[i]; tag_list.push({ text: x.NAME, weight: x.COUNT, //link: this.mkUrl(x), click: function() { alert("it worked for " + x.NAME); }, html: {title: this.mkTooltip(x)} }); } $("#"+containerdivname).append( $("<div></div>", {id:"wordcloud"}));

How to create a gridview like Foursquare interest selection screen?

∥☆過路亽.° 提交于 2019-12-07 14:21:14
问题 I am creating an app which requires the user to select multiple interests. I am trying to create a screen similar to the Foursquare interest selection similar to a Tag cloud where multiple buttons can be selected to represent the users interests. I have tried creating a gridview but I'm not able to achieve the effect of buttons wrapping up to the next line. Is there a way this can be achieved via a gridview? Is there a library which does this kind of UI? 回答1: You're looking for FlowLayout