[jQuery] Turn HTML tables into graphs using flot
I'd been playing with jQuery and building tables from JSON data, and
then flot came along right at the same time I was working on a project
that required graphing data that was already in tables. I wrote a
plugin to help me out that I think other people might find useful:
http://blog.rebeccamurphey.com/2007/12/17/graph-table-data-jquery-flot/
usage:
$('#myTable').graphTable({series:'columns'});
It's got a bunch of other properties too -- to choose which part of
the table you want to use, where the graph should go, and how to turn
the table data into numbers that flot can understand -- but everything
except the series property is optional. It'll work with simple tables,
but nothing with rowspans or colspans.
Interested in anyone's suggestions on how to make it better ...