Tability / 0.7 Example
This Table and graph were generated from the table by including this line in the <head> tag of the page
<script> type="text/javascript" src="http://jeffpalm.com/tability/0.7/tability.user.js"> </script>
and including this code after the table.
<span tability="true" table="theTable"> <type>TABLE</type> <series>true</series> <labels>true</labels> </span> <span tability="true" table="theTable"> <type>Line</type> <series>true</series> <labels>true</labels> </span>
(Note the difference in the type tags). This instructs
our script to replace this span with an image of the
graph created from the table with id theTable. The API is
basically the same from the previous
version, except that instead of making an explicit call to a funtion
with options in javascript, you can simply include a span
with the attribute tability set to true (or any
value, really), and include the graph options as children of this
span. Again, I'll expand on the options later, they are pretty
minimal now.
The Table
The Graph
Where theTable is the id of the table.
Numbers Values Other Values More Values 0 46 153 254 1 76 111 283 2 26 192 243 3 27 162 265 4 57 191 296 5 17 187 277 6 95 182 257 7 92 132 274 8 87 104 215 9 11 197 215
