An Example of a Google Bar Chart

by VikasRinvi

HTML

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  <div id="chart_div"></div>

JavaScript

google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);

      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Director (Year)', 'bar1', 'Rotten Tomatoes', 'IMDB', 'Mango', 'Orange'],
          ['Alfred Hitchcock (1935)',1,3,2.5,2.5,2],
          ['Ralph Thomas (1959)', 2,    3,2.5,2.5,2],
          ['Don Sharp (1978)',    2.5,    3,2.5,2.5,2],
          ['James Hawes (2008)',   1.3,  3,2.5,2.5,2]
        ]);

        var options = {
          title: 'The decline of \'The 39 Steps\'',
          vAxis: {title: 'Accumulated Rating'},
          isStacked: true,
          seriesType: 'steppedArea',
          series: {
            0:  {type:'bars', visibleInLegend: false},
            }
        };

        var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));

        chart.draw(data, options);
      }