Hello, I am trying to create a table but I am using a title and it is not 
appearing above the table, am I missing something?
Here is my current code:

*<script type="text/javascript" 
src="https://www.gstatic.com/charts/loader.js";></script>*
*<script type="text/javascript">*
*    google.charts.load('current', {'packages':['table']});*
*    google.charts.setOnLoadCallback(drawTable);*

*    function drawTable() {*
*    var data = new google.visualization.DataTable();*
*    data.addColumn('string', 'Term');*
*    data.addColumn('number', 'Frequency');*
*    data.addRows([*
*        ['Car', 5],*
*        ['Bike', 3]*
*    ]);*

*    var options = {*
*        "title":"Most Popular Vehicles",*
*        width:"100%",*
*        height:"100%",*
*        showRowNumber: true*
*    };*

*    var table = new 
google.visualization.Table(document.getElementById('graph'));*

*    table.draw(data, {"title":"Most Popular 
Vehicles", width:"100%", height:"100%", showRowNumber: true});*
*    }*
*</script>*

*<div id = "graph"> *
*</div>*

As you can see, I have tried both 
table.draw(data, {"title":"Most Popular Vehicles", width:"100%", height:"
100%", showRowNumber: true}); 
and table.draw(data, options);
And neither are working.

Any help is appreciated, thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/37b8027a-caf8-4bbc-b4b2-fb1db72e7200n%40googlegroups.com.

Reply via email to