Switch branches/tags
Nothing to show
Pull request Compare This branch is 210 commits behind timdream:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
en
tests
zh
.gitignore
MIT-LICENSE.txt
README.md
beachball.gif
famfamfam_sprites.png
famfamfam_sprites.txt
go2.js
jquery.getcontent.js
jquery.wordcloud.js
wordcloud.css
wordcloud.js
wordcloud.scss
wordfreq.js
wordfreq.worker.js
worker.iframe.html
worker.js

README.md

HTML5 Word Cloud

Word Cloud on HTML5 canvas, inspired by Wordle.

Author: Timothy Chien <timdream@gmail.com>

URL: http://timc.idv.tw/wordcloud/

Intro

HTML5 Word Cloud is inspired by Wrodle, instead of generate the image on a Java Applet, this experiment is entirely on HTML5 canvas.

Under the hood

This program is composed of three libraries, two of them have dependency of jQuery thus they are warped as jQuery plug-ins:

  1. jquery.getcontent.js which access remote or local content though Google Feed API, YQL data.html (experimental), Facebook Javascript SDK, and FileReader API.
  2. wordfreq.js which count the phrases/words by running N-gram analysis (for Chinese) and Porter Stemming Algorithm (for English) in Web Workers.
  3. finally, jquery.wordcloud.js draw the phrases/words on canvas using configured parameters.

Each of the libraries comes with their own tests/demos and are designed to be reusable.

Following external libraries are included:

  1. Porter Stemming Algorithm in Javascript as mentioned above.
  2. Simulated Web Workers (worker.js) to provide a simulated web workers interface in IEs and Mobile Safari.

Contributors

Q&A

I can be reached by e-mail.