Google Charts - Labeled Column Chart

You are Here:

How to Draw a Labeled Column Chart?

Please wait google chart is loading...

In this example, we will draw a labeled column chart. Please hover the columns 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(drawBasic); function drawBasic() { var data = google.visualization.arrayToDataTable([ ['Programming Language', 'Users', { role: 'style' }, { role: 'annotation' }], ['javascript', 350,'red', 'javascript'], ['python', 220, 'green', 'python'], ['java', 180, 'blue', 'java'], ['php', 160, 'black', 'php'], ['c', 90, 'orange', 'c'] ]); var options = { title: 'Top 5 Programming Language - 2019', chartArea: {width: '50%', height: '75%'}, height: 400, width: 600, hAxis: { title: 'Programming Language', minValue: 0 }, vAxis: { title: 'Total Users', gridlines: { count: 4 } }, legend: { position: 'none' } }; var chart = new google.visualization.ColumnChart(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