nathfy / auto-table-to-chart

Automatically exported from code.google.com/p/auto-table-to-chart
0 stars 0 forks source link

Multiple table #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
how to add multiple table to chart on the same page ?

Original issue reported on code.google.com by marcandr...@gmail.com on 8 Jan 2013 at 6:04

GoogleCodeExporter commented 9 years ago
you can have as many charts as you like on a page, just make sure they have 
their own ID and are targeted by the AttC plugin via a jquery selector - eg 
here using a data attribute on the table:

<table data-attc-createChart=true ...

Then in your JS:

$('table[data-attc-createChart]').each(function(){
  $(this).attc();
});

Original comment by nat...@gmail.com on 18 Mar 2013 at 3:02