Skip to content

mattdodge/MySQL-Word-Cloud

 
 

Repository files navigation

MySQL Word Cloud

Create an aesthetic word cloud on an HTML5 canvas from your MySQL Data

inspired by timdream's wordcloud.

Author: Matt Dodge <[email protected]>

Requirements

  • PHP with PDO
  • jQuery
  • HTML5 Browser with Canvas support (aka anything that is not IE 8 or lower)

Usage

  1. Clone or download into a directory on your web server, let's call the directory "wordcloud"

  2. After you have loaded jQuery with a <SCRIPT> tag, load the plugin

    <script type="text/javascript" src="wordcloud/jquery.wordcloud.js"></script>
  3. Put a canvas somewhere on your page

    <canvas id="cloudcanvas" width="600" height="400"></canvas>
  4. After the DOM is ready, call the wordCloud function on the canvas

    $("#cloudcanvas").wordCloud({
       database: {
          // database parameters go here, see parameters section
       }
    });

That's it! See the tests in the tests directory for some living examples.

About

HTML5 Word Cloud from a MySQL Database - inspired by and forked from timdream

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.7%
  • PHP 41.3%
  • CSS 17.0%