function drawChart() {
  const data = new google.visualization.DataTable();
  data.addColumn('string', 'Genre');
  data.addColumn('number', 'Time');
        data.addRows([
          ['Country',25],
          ['Bollywood',10],
          ['Pop',30],
          ['Rap',8],
          ['Classical',27]
        ]);

  const options = {
    'width':700,
    'height':600,
    pieHole: 0.4,
    colors: ['#E082AA','#E0BEF7', '#F7F2BE','#82E0D7', '#CDECE8']
  };

  const chart = new google.visualization.PieChart(
    document.getElementById('chart-container'));
  chart.draw(data, options);
}
/** Creates a chart and adds it to the page. */
Creates a chart and adds it to the page.
Creates a chart and adds it to the page .
function drawChart() {
  const data = new google.visualization.DataTable();
  data.addColumn('string', 'Genre');
  data.addColumn('number', 'Time');
        data.addRows([
          ['Country',25],
          ['Bollywood',10],
          ['Pop',30],
          ['Rap',8],
          ['Classical',27]
        ]);
  const options = {
    'width':700,
    'height':600,
    pieHole: 0.4,
    colors: ['#E082AA','#E0BEF7', '#F7F2BE','#82E0D7', '#CDECE8']
  };
  const chart = new google.visualization.PieChart(
    document.getElementById('chart-container'));
  chart.draw(data, options);
}
function drawChart ( ) { const data = new google . visualization . DataTable ( ) ; data . addColumn ( 'string' , 'Genre' ) ; data . addColumn ( 'number' , 'Time' ) ; data . addRows ( [ [ 'Country' , 25 ] , [ 'Bollywood' , 10 ] , [ 'Pop' , 30 ] , [ 'Rap' , 8 ] , [ 'Classical' , 27 ] ] ) ; const options = { 'width' : 700 , 'height' : 600 , pieHole : 0.4 , colors : [ '#E082AA' , '#E0BEF7' , '#F7F2BE' , '#82E0D7' , '#CDECE8' ] } ; const chart = new google . visualization . PieChart ( document . getElementById ( 'chart-container' ) ) ; chart . draw ( data , options ) ; }
Creates a chart and adds it to the page.
Creates a chart and adds it to the page .