By rdmey
via blog.rebeccamurphey.com
Published: Dec 19 2007 / 12:38
I just got done with a first draft of the graphTable plugin, which lets you take a simple HTML table and turn the data in it into a graph using jQuery and flot. The most basic usage is simple:
$('#table1').graphTable({series: 'columns'});
graphTable takes up to two objects as arguments: the first is an object with the arguments for graphTable; the second is an object with arguments to be handed off to flot (read more about flot arguments). The graphTable arguments let you:
* choose which parts of the table will be used for the graph data
* choose where the graph will go in relation to the table and how big it will be
* run a function on cell contents (to remove dollar signs, for example) before passing them to flot
Add your comment
Voters For This Link (21)
-
rdmey -
jkso -
bloid -
harlan -
tjweir -
matt -
reybango -
awels -
bcichowlas -
fabiocaseri -
BabyMaurader -
lamas -
zis -
ymax -
guoyongfei -
ajainy -
markthomas -
duzer -
bratanone -
Physician -
art.birg


