Hello Charters...

I have been having problems displaying a table chart wrapper and I cannot 
figure out what I'm doing wrong.  

So here are two links in the same environment using nearly the same code,

Table Test 
http://vehicledata.leefh2.com/vehicledata/index.php?option=com_visualization&view=visualization&id=9&Itemid=508
 - uses a table chart and it displays just fine

Wrapper Test 
http://vehicledata.leefh2.com/vehicledata/index.php?option=com_visualization&view=visualization&id=8&Itemid=507

 - uses a chartwrapper with type Table
 - currently displays the error: 
    - FF: c[Md] is not a function
    - IE: Object doesn't support property or method 'draw'
    - Chrome: Object [object Object] has no method 'draw'

google.load('visualization', '1');
google.setOnLoadCallback(drawVisualization);

   function drawVisualization () {

      var data = new google.visualization.DataTable();
        data.addColumn('string', 'Name');
        data.addColumn('number', 'Salary');
        data.addColumn('boolean', 'Full Time Employee');
        data.addRows([
          ['Mike',  {v: 10000, f: '$10,000'}, true],
          ['Jim',   {v:8000,   f: '$8,000'},  false],
          ['Alice', {v: 12500, f: '$12,500'}, true],
          ['Bob',   {v: 7000,  f: '$7,000'},  true]
        ]);

      var tableWrap = new google.visualization.ChartWrapper({
         'chartType': 'Table',
         'containerId': 'tableContainer',
         'dataTable': data,
         'options': {
           'width': '100%',
           'showRowNumber': true
         },
       });

      tableWrap.draw();
    }

Thank you in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to