Google Charts - Table Chart

You are Here:

How to Draw a Table Chart?

Please wait google chart is loading...

In this example, we will draw a table chart. Please hover/click on the table's row in the above chart to highlight particular details.


HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src=""></script> </head> <body> <div id="point"> </div> <script> google.charts.load('current', {'packages':['table']}); google.charts.setOnLoadCallback(drawTable); function drawTable() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Name'); data.addColumn('number', 'Salary'); data.addColumn('boolean', 'Full Time Employee'); data.addRows([ ['Alex', {v: 10000, f: '$10,000'}, true], ['Blake', {v: 8000, f: '$8,000'}, false], ['Charlie', {v: 12500, f: '$12,500'}, true], ['Dixon', {v: 7000, f: '$7,000'}, true] ]); var options = { width: '100%', height: 200, showRowNumber: true }; var table = new google.visualization.Table(document.getElementById('point')); table.draw(data, options); } </script> </body> </html>


Hi Developers, we almost covered 98% of Google Charts Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Google Charts.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author