Google Charts - Basic Histogram Chart

You are Here:

How to Draw a Basic Histogram Chart?

Please wait google chart is loading...

In this example, we will draw a basic histogram 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"]}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Name', 'Score'], ['Albert', 90], ['Alex', 75], ['Bailey', 65], ['Bethany', 98], ['Brooke', 68], ['Brenda', 50], ['Becky', 58], ['Charlotte', 59], ['Caroline', 92], ['Cassandra', 80], ['Cynthia', 85], ['Dana', 89], ['Danessa', 93], ['Emmanuel', 42], ['Evan', 78], ['Fabian', 94], ['Fabio', 61], ['Fabrice', 63], ['Fachtna', 97], ['George', 64], ['Gregory', 73], ['Garrett', 75.50], ['Haley', 72.25], ['Helen', 73.75], ['Joseph', 78.50], ['Justin', 99], ['Kaapro', 93.50], ['Kace', 78.25] ]); var options = { title: 'Marks obtained by Students', height: 400, legend: { position: 'none' } }; var chart = new google.visualization.Histogram(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