Remove column key from google pie chart - Javascript Google Chart

Javascript examples for Google Chart:Column Chart

Description

Remove column key from google pie chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){//  ww  w. ja  v a 2 s.  c  o m
      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
     function drawChart() {
        var data = google.visualization.arrayToDataTable([
                    ['Submitter', 'Count'],['Service',168],['NAME 1',42],['NAME 2',36],['NAME 3',35],['NAME 4',34],['NAME 5',30],['NAME 6',24],['NAME 7',21],['NAME 8',18]]);  var options = {
pieSliceText:'percentage',
legend:{position: 'left'},
height:'500',
chartArea:{height:'500',
    left:0, right:0, top:30, bottom:0
},
 };
var chart = new google.visualization.PieChart(document.getElementById('chart6_div'));
chart.draw(data, options);
}
    }

      </script> 
   </head> 
   <body> 
      <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> 
      <div id="chart6_div" style="width: 500px; height: 400px;"></div>  
   </body>
</html>

Related Tutorials