nathfy / auto-table-to-chart

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

unable to create more than one chart #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. place two tables on html page
2. using different IDs for tables and DIVs

What is the expected output? What do you see instead?
Two or three tables on the page. Instead only the first table appears as a 
chart, the others don't show up, and the values of the first tables are messed 
up, as if it's trying to combine all tables into one chart.

What version of the product are you using? On what operating system?
0.3

Please provide any additional information below.
attached is the HTML code, and a screenshot

Original issue reported on code.google.com by a...@lousch.net on 1 Mar 2013 at 11:37

Attachments:

GoogleCodeExporter commented 9 years ago
Adding the following to your header should fix the issue:

<script type="text/javascript" charset="utf-8">
  $(document).ready(function()
  {
    $('body').find('table[data-attc-createChart]').each(function()
    {
      $(this).attc();
    });
  });
</script>

Ref: https://code.google.com/p/auto-table-to-chart/issues/detail?id=13

Original comment by lars.lin...@gmail.com on 12 Mar 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Thanks Lars - yes that is how i do it. But i'll add code to handle multiple 
tables at some point...

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