Google Charts - Grouped Bar Chart

You are Here:

How to Draw a Grouped Bar Chart?

Please wait google chart is loading...

In this example, we will draw a grouped bar chart. Please hover the bars in the above chart to view 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: ['corechart', 'bar']}); google.charts.setOnLoadCallback(drawMultSeries); function drawMultSeries() { var data = google.visualization.arrayToDataTable([ ['Subject', 'Adam', 'John'], ['Math', 99, 85], ['Physics', 90, 78], ['Chemistry', 75, 68], ['Botany', 91, 63], ['Zoology', 50, 40] ]); var options = { title: 'Adam VS John Mark list', height: 350, chartArea: { width: '50%', height:'75%' }, hAxis: { title: 'Marks Obtained', minValue: 0 }, vAxis: { title: 'Subjects' } }; var chart = new google.visualization.BarChart(document.getElementById('point')); chart.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