title: How to display a table of data on clicking a slice of google pi chart?
body: <p>I am new to google visualization and codeigniter. i made a pie chart and i want to display table with the some data on clicking the slices,
  How can i do it?</p>
  
  <p>This is the function in javascript to display the pi-chart:</p>
  
  <pre><code>     &lt;script&gt;
       function drawChart() 
       {
    `
       var data = google.visualization.arrayToDataTable([
      ['User', 'No of Groups'],
        &lt;?php foreach($t-&gt;result() as $tsk)
       { ?&gt;['&lt;?php  echo $tsk-&gt;status ?&gt;', &lt;?php echo  $tsk-&gt;count ?&gt; ],
        &lt;?php 
        } ?&gt; ]); 
      var options = {
          // pieSliceText: 'label',
        title: 'My Daily Activities',
        colors: ['green', 'yellow', 'orange', 'red']
  
      };
  
     var chart = new 
     google.visualization.PieChart(document.getElementById('piechart'));
  
      chart.draw(data, options);
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>when i click on a slice i want to display a table with details of that corresponding slice (i,e status) .</p>
  
  <p>Please help me</p>