Word Cloud on HTML5 canvas, inspired by Wordle.
Author: Timothy Chien <[email protected]>
URL: http://timc.idv.tw/wordcloud/
HTML5 Word Cloud is inspired by Wrodle, instead of generate the image on a Java Applet, this experiment is entirely on HTML5 canvas.
This program is composed of three libraries, two of them have dependency of jQuery thus they are warped as jQuery plug-ins:
jquery.getcontent.js
which access remote or local content though Google Feed API, YQL data.html (experimental), Facebook Javascript SDK, and FileReader API.wordfreq.js
which count the phrases/words by running N-gram analysis (for Chinese) and Porter Stemming Algorithm (for English) in Web Workers.- 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:
- Porter Stemming Algorithm in Javascript as mentioned above.
- Simulated Web Workers (
worker.js
) to provide a simulated web workers interface in IEs and Mobile Safari.
- Yuren Ju for Facebook Status fetching
I can be reached by e-mail.