title: Google chart change bar color
body: <p>i am using google chart api to show a chart on a bootstrap modal with framework Laravel, i'm having an issue because i'm not beein able to change the colour of the bar and put one blue and the other one green, another issue is that at the right it only put me the name of une of the bars(RX). </p>
  
  <p>Here is my js code:</p>
  
  <pre><code>// Load the Visualization API and the corechart package.
    google.charts.load('current', {'packages':['corechart']});
  
    // Set a callback to run when the Google Visualization API is loaded.
    // google.charts.setOnLoadCallback(drawChart);
  
    // Callback that creates and populates a data table,
    // instantiates the pie chart, passes in the data and
    // draws it.
    function drawChart(nombre, unidad, tipo, valor, media) {
  
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Name');
      data.addColumn('number', 'RX');     
      data.addColumn({type: 'string', role: 'annotation'});
  
      data.addRows([
        ['Tú', parseInt(valor), valor+' '+unidad],
        ['Media', parseFloat(media), parseInt(media)+' '+unidad],
      ]);
  
      var view = new google.visualization.DataView(data);
      view.setColumns([0, 1,1,2]);
  
      var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
  
      chart.draw(view, {
        // height: 400,
        // width: 600,
        series: {
          0: {
            type: 'bars'
          },
          1: {
            type: 'line',
            color: 'grey',
            lineWidth: 0,
            pointSize: 0,
            visibleInLegend: false
          }
        },
        vAxis: {
          maxValue: 100,
          minValue: 0,
        }
      });
      $("#myModalLabel").empty();
      $("#myModalLabel").append(tipo+" - "+nombre);
      $("#modalChart").modal();
    }
  </code></pre>
  
  <p>Here is the chart that i get:</p>
  
  <p><a href="https://i.stack.imgur.com/X4mS5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X4mS5.png" alt="enter image description here"></a></p>