An open API service indexing awesome lists of open source software.

https://github.com/thinkphp/table2chart

Generating charts from accessible data tables. Using this MooTools plugin you can take a simple, valid and accessible data table and it gets automatically converted to a pie chart. Simply add the script to the end of the body and it'll convert all tables with a class called 'toChart'. You can define the size and the colour.
https://github.com/thinkphp/table2chart

Last synced: 3 months ago
JSON representation

Generating charts from accessible data tables. Using this MooTools plugin you can take a simple, valid and accessible data table and it gets automatically converted to a pie chart. Simply add the script to the end of the body and it'll convert all tables with a class called 'toChart'. You can define the size and the colour.

Awesome Lists containing this project

README

          

table2chart
=======================
This is a plugin MooTools that generates charts from accessible data tables. So, you can take a simple, valid and accessible data table
and it gets automatically converted to a pie chart. Simply add the script to the end of the body and it'll converts all the table
with a class called 'toChart'.
You can define the size and the colour within the attribute class of the table (like: class="toChart size700x300 color29b34f").

![Screenshot](http://farm5.static.flickr.com/4093/4863355714_95a08a2074_z.jpg)

How to use
----------

First you must to include the JS files in the head of your HTML document.

#HTML

In your HTML source:

BrowserPercent

MSIE20
FireFox100
Camino70
Opera90
Safari90

Add the script to the end of the body:

#JS

new Table2Chart();

OR wait until dom is ready

#JS

window.addEvent('domready',function(){
new Table2Chart();
});

Dependencies

MooTools Core 1.3