google.visualization.Table is not a constructor

4,785 views
Skip to first unread message

Ulysse

unread,
Mar 21, 2012, 5:46:07 PM3/21/12
to Google Visualization API
Hi,

I'm getting the error "google.visualization.Table is not a
constructor" when using the table example:
http://code.google.com/intl/fr-FR/apis/chart/interactive/docs/examples.html#table_example

on line -->var table = new
google.visualization.Table(document.getElementById('table_div'));

Very strange because the line chart is working well:
http://code.google.com/intl/fr-FR/apis/chart/interactive/docs/gallery/linechart.html

I'm just using javascript in a JSP page....

Thanks for any help,

Ulysse

GradualStudent

unread,
Mar 21, 2012, 9:33:11 PM3/21/12
to google-visua...@googlegroups.com
Check the call to google.load and see if "table" is included:


    google.load("visualization", "1", {packages:["corechart", "table"]}); 
Reply all
Reply to author
Forward
0 new messages