{"id":25470029,"url":"https://github.com/thinkphp/table2chart","last_synced_at":"2025-11-04T18:30:27.406Z","repository":{"id":1004202,"uuid":"819316","full_name":"thinkphp/table2chart","owner":"thinkphp","description":"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.","archived":false,"fork":false,"pushed_at":"2010-11-18T12:18:16.000Z","size":112,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:54:29.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.github.com/table2chart/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-05T14:28:11.000Z","updated_at":"2016-03-03T13:12:32.000Z","dependencies_parsed_at":"2022-07-06T01:02:06.445Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/table2chart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Ftable2chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Ftable2chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Ftable2chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Ftable2chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/table2chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437081,"owners_count":19638428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-18T08:31:44.898Z","updated_at":"2025-11-04T18:30:27.361Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"table2chart\n=======================\nThis is a plugin MooTools that generates charts from accessible data tables. So, you can take a simple, valid and accessible data table\nand 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\nwith a class called 'toChart'. \nYou can define the size and the colour within the attribute class of the table (like: class=\"toChart size700x300 color29b34f\").\n\n![Screenshot](http://farm5.static.flickr.com/4093/4863355714_95a08a2074_z.jpg)\n\nHow to use\n----------\n\nFirst you must to include the JS files in the head of your HTML document.\n       \n       #HTML\n       \u003cscript type=\"text/javascript\" src=\"mootools.js\"\u003e\u003c/script\u003e\n       \u003cscript type=\"text/javascript\" src=\"table2chart.js\"\u003e\u003c/script\u003e\n\n\nIn your HTML source: \n       \u003ctable class=\"toChart size700x300 color29b34f\" summary=\"Browsers for this site, 29 May 2010\"\u003e\n         \u003cthead\u003e\u003ctr\u003e\u003cth\u003eBrowser\u003c/th\u003e\u003cth\u003ePercent\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\n         \u003ctbody\u003e\n           \u003ctr\u003e\u003ctd\u003eMSIE\u003c/td\u003e\u003ctd\u003e20\u003c/td\u003e\u003c/tr\u003e\n           \u003ctr\u003e\u003ctd\u003eFireFox\u003c/td\u003e\u003ctd\u003e100\u003c/td\u003e\u003c/tr\u003e\n           \u003ctr\u003e\u003ctd\u003eCamino\u003c/td\u003e\u003ctd\u003e70\u003c/td\u003e\u003c/tr\u003e\n           \u003ctr\u003e\u003ctd\u003eOpera\u003c/td\u003e\u003ctd\u003e90\u003c/td\u003e\u003c/tr\u003e\n           \u003ctr\u003e\u003ctd\u003eSafari\u003c/td\u003e\u003ctd\u003e90\u003c/td\u003e\u003c/tr\u003e\n        \u003c/tbody\u003e\n      \u003c/table\u003e\n\n\nAdd the script to the end of the body:\n\n       #JS \n       \u003cscript type=\"text/javascript\"\u003e\n         new Table2Chart(); \n       \u003c/script\u003e\n\nOR  wait until dom is ready\n\n      #JS \n      \u003cscript type=\"text/javascript\"\u003e\n      window.addEvent('domready',function(){\n         new Table2Chart();   \n      });  \n      \u003c/script\u003e\n\n\nDependencies\n\n      MooTools Core 1.3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Ftable2chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Ftable2chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Ftable2chart/lists"}