Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yochannah/tagcloud
basic tag cloud with weight-reduction functionality when tags are clicked (tags of weight 0 don't display)
https://github.com/yochannah/tagcloud
Last synced: about 2 months ago
JSON representation
basic tag cloud with weight-reduction functionality when tags are clicked (tags of weight 0 don't display)
- Host: GitHub
- URL: https://github.com/yochannah/tagcloud
- Owner: yochannah
- Created: 2015-03-25T21:32:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T11:53:01.000Z (over 4 years ago)
- Last Synced: 2024-10-03T19:29:12.505Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tagcloud
basic tag cloud with weight-reduction functionality when tags are clicked (tags of weight 0 don't display)Interview task I was asked to complete in 2015.
Live demo: https://jsfiddle.net/yochannah/cmL6gw5j/
I intentionally haven't included a licence - I like to share this as an example of the type of simple task that is good for coder interviews, but the task itself was written by someone else so I can't give permission to re-use it.
## Original brief (sans the .csv file:)
> I hate to ask for any more of your time, but, to be fair to the other candidates, I would like you to consider completing the following very short project. This is a way for us to mutually confirm in a hands-on manner that the sort of skills we will be requiring on a day-to-day basis match your profile. I would genuinely expect no more than 1 hour of your time on this, so feel free to only complete part of it, and/or to use any open-source tools you see fit (as long as you tell us which ones you used).
> I attach a file called “test.csv” that has a list of words and associated weights. I would like you to produce a small demo that runs on a browser, plots a word cloud of these twenty words, with the respective sizes controlled by the “weights” vector, and allows the following two interactions:
> 1. when a user left-clicks on a word, its weight is increased by 0.1 units (and its size should adapt to the new weight) - a right-click decreases it.
> 2. if the weight drops below 0, the word is entirely deleted.> Please also include a simple table of all the words and up-to-date weights (0 for deleted words) below the word cloud.
> Please let me know whether you might be able to have the time to put this together before our meeting on Friday?