Google Charts - Google Charts tutorial - Grouped Column Chart - chart js - google graphs - google charts examples




What is a grouped column chart?

  • A bar chart or bar graph is a chart or graph that presents grouped data with rectangular bars with lengths proportional to the values that they represent.
  • The bars can be plotted vertically or horizontally.
  • A vertical bar chart is sometimes called a Line graph.
 Googlecharts Column Grouped

Learn Google Charts - Google Charts tutorial - Googlecharts Column Grouped - Google Charts examples - Google Charts programs

Example

googlecharts-column-grouped.html

 Tryit<html>   
<head>
<title>Google Charts Tutorial - Wikitechy</title>
   <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
   <script type="text/javascript">
     google.charts.load('current', {packages: ['corechart']});     
   </script>
</head>
<body>
<div id="container" style="width: 650px; height: 500px; margin: 0 auto"></div>
<script language="JavaScript">
function drawChart() {
   // Define the chart to be drawn.
   var data = google.visualization.arrayToDataTable([
      ['Year', 'Sales', 'Purchase'],
	  ['2013',  1000,      890],
      ['2014',  1100,      700],
      ['2015',  1270,      740],
      ['2016',  1350,      880],
      ['2017',  1630,      940]
      ]);

   var options = {
      title: 'Sales And Purchase Compare'      
   };  

   // Instantiate and draw the chart.
   var chart = new google.visualization.ColumnChart(document.getElementById('container'));
   chart.draw(data, options);
}
google.charts.setOnLoadCallback(drawChart);
</script>
</body>
</html>
Clicking "Copy Code" button to copy the code. From - google charts tutorial - team

Output


Related Searches to Google Charts - Grouped Column Chart

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×