Home > Programming > jQuery Visualize: Updated accessible charts and graphs

jQuery Visualize: Updated accessible charts and graphs

Scott Jehl has released jQuery Visualize, the plugin that groks HTML tables and generates lovely charts from it, all from a simple $('table').visualize(); (lot’s of options for you to twiddle too if you want).

First, you create a bog standard table like:

 

PLAIN TEXT

HTML:

  1. <table>

  2. <caption>2009 Individual Sales by Category</caption>

  3. <thead>

  4. <tr>

  5. <td></td>

  6. <th>food</th>

  7. <th>auto</th>

  8. <th>household</th>

  9. <th>furniture</th>

  10. <th>kitchen</th>

  11. <th>bath</th>

  12. </tr>

  13. </thead>

  14. <tbody>

  15. <tr>

  16. <th>Mary</th>

  17. <td>150</td>

  18. <td>160</td>

  19. <td>40</td>

  20. <td>120</td>

  21. <td>30</td>

  22. <td>70</td>

  23. </tr>

  24. <tr>

  25. <th>Tom</th>

  26. <td>3</td>

  27. <td>40</td>

  28. <td>30</td>

  29. <td>45</td>

  30. <td>35</td>

  31. <td>49</td>

  32. </tr>

  33.                 …repetitive rows removed for brevity.

  34. </tbody>

  35. </table>

 

Then you visualize it. You end up with pretty graphs like these:

jqueryvisualize

Categories: Programming Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.