title: Jquery get HTML Table column's text in array
body: <p>Edit :
  I have an HTML table like in the picture below, and now i need to make the chart with the same code we used last time ( remember we have to write a jquery code to select data). </p>
  
  <p>The chart i need this time is a timeline chart. (with time selected in column 4 and colum 9 ) and for each type (Pink/Blue/Green..) a line chart with sum amount capitalised by time. </p>
  
  <p>Example: 
  For green Catégorie a line representative for that</p>
  
  <ul>
  <li>In 12/12/2012 : 8000 $</li>
  <li>In 13/12/2012 : 8000 $ + 1000 $</li>
  </ul>
  
  <p>Code : </p>
  
  <pre><code>  &lt;script&gt;             
   function getData(columnOrder, keyName) {
   var obj, table = $('table'), array = [];
   table.find('tbody tr').each(function() {
   var rows = $(this).find('td:nth-child(' + columnOrder +')');
   rows.each(function(){
      obj = {};
      obj[keyName] = $(this).text();
      array.push(obj);
   });
   });
   return array;
   }
  
   var Time= getData(4, 'time');
   var datasline1 = getData(5, 'value');
   var datasline2 = getData(5, 'value');
   var datasline3 = getData(5, 'value');
   var datasline4 = getData(5, 'value');
  
  
   console.log(Time);
   console.log(datas1/2/3/4);
  
  
   $("#chart-container").insertFusionCharts({
   type: "mscombi2d",
   width: "100%",
   height: "40%",
   dataFormat: "json",
   dataSource: {
   "chart": {
   "caption": "Balance Perfomance",
  
   "exportenabled": "1",
   "theme": "fusion"
   },
   "Time": [
   {
    "Time": Time
    }
   ],
   "dataset": [
   {
    "seriesname": "Line1",
       "renderas": "line",
    "showanchors": "1",
    "data": datasline1
    },
    {
    "seriesname": "Line2",
       "renderas": "line",
    "showanchors": "1",
    "data": datasline2
    },
    ] 
    }
    });
  
          &lt;/script&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/A0n8P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A0n8P.png" alt="enter image description here"></a></p>
  
  <p>Edit 2 : My console Errors
  <a href="https://i.stack.imgur.com/A0n8P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A0n8P.png" alt="enter image description here"></a></p>