title: Displaying percentages in stacked bar Google Charts
body: <pre class="lang-javascript prettyprint-override"><code>// Display google stacked bar chart
  var view = new google.visualization.DataView(data);
  view.setColumns([0, 1, {
      calc: "stringify",
      sourceColumn: 1,
      type: "string",
  role: "annotation"
  },
  2]);
  </code></pre>
  
  <p>Below is the picture of stacked <a href="https://developers.google.com/chart/interactive/docs/gallery/barchart" rel="nofollow noreferrer">bar chart</a> I have.</p>
  
  <p><a href="https://i.stack.imgur.com/gUI36.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gUI36.jpg" alt="enter image description here"></a></p>
  
  <p>I am not able to display the percentage on the green bar but not on the red bar.
  The current value in the green bar is not a percentage value.</p>