title: Google Pie chart percentage calculation
body: <p>I have a page that displays data in a form of a Pie Chart. I use Google Charts and here is the code:</p>
  
  <pre><code> &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
        google.load("visualization", "1", {packages:["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
          var data = google.visualization.arrayToDataTable([
            ['Product', 'Sale In Percent'],
          ['product2', 5.5],
          ['product3', 7.5],
          ['product4', 1.5],
          ['product5', 8.5],
          ]);
  
          var options = {
            title: 'Product Sales'
          };
  
         var chart = new google.visualization.PieChart(document.getElementById('piechart2'));
          chart.draw(data, options);
        }
      &lt;/script&gt;
  &lt;div id="piechart2" style="width: 700px; height: 400px; position: relative;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And here's a working JS FIDDLE:
  <a href="https://jsfiddle.net/alex4uthis/j78vmq00/2/" rel="nofollow">https://jsfiddle.net/alex4uthis/j78vmq00/2/</a></p>
  
  <p>Here I have 1 more product as product1 and its value is 77. Since this value is always higher I omitted from the chart. When I draw the chart we can see product2 percent become 23.9%, product3 percent become 32.6 etc.... But I want to get the pie chart draw with what I have given in 'Sale In Percent' column.(Means product1 draw with 5.5 etc...)
  Please help me in this.</p>