Your example works fine for me. See: http://jsfiddle.net/dlaliberte/9A6zx/
It appears the problem you are having is because google.visualization.Table
is not found and there is a Table class on the window that is used instead.
You can force the gviz Table to be used by changing your chartType option
to:
'chartType': 'google.visualization.Table'
You'll also want to change your load call to:
google.load('visualization', '1', {packages:['table']});
Hope that helps.
On Fri, Aug 2, 2013 at 10:06 AM, T-Roy <[email protected]> wrote:
> 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.
>
>
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> -
978-394-1058
[email protected] <[email protected]> 562D 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA
--
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.