title: Highcharts pie charts can have url links
body: <p>I am using Highcharts pie charts in my application, where the data for pie chart is populating from database. My question is after populating pie chart, if i click certain area it should render to particular php page. Is it possible?</p>
  
  <p>here is my code :</p>
  
  <pre><code>    function open_risk_level_pie()
      {
      $chart = new Highchart();
  
      $chart-&gt;chart-&gt;renderTo = "open_risk_level_pie";
      $chart-&gt;chart-&gt;plotBackgroundColor = null;
      $chart-&gt;chart-&gt;plotBorderWidth = null;
      $chart-&gt;chart-&gt;plotShadow = false;
      $chart-&gt;title-&gt;text = "Risk Level";
  
      $chart-&gt;tooltip-&gt;formatter = new HighchartJsExpr("function() {
      return '&lt;b&gt;'+ this.point.name +'&lt;/b&gt;: '+ this.point.y; }");
  
      $chart-&gt;plotOptions-&gt;pie-&gt;allowPointSelect = 1;
      $chart-&gt;plotOptions-&gt;pie-&gt;cursor = "pointer";
      $chart-&gt;plotOptions-&gt;pie-&gt;dataLabels-&gt;enabled = false;
      $chart-&gt;plotOptions-&gt;pie-&gt;showInLegend = 1;
      $chart-&gt;plotOptions-&gt;pie-&gt;colors = array('red', 'orange', 'yellow', 'black');
      $chart-&gt;credits-&gt;enabled = false;
  
      // Open the database connection
      $db = db_open();
  
  // Get the risk levels
  $stmt = $db-&gt;prepare("SELECT * from `risk_levels`");
  $stmt-&gt;execute();
  $array = $stmt-&gt;fetchAll();
  $high = $array[0][0];
  $medium = $array[1][0];
  $low = $array[2][0];
  
      // Query the database
      $stmt = $db-&gt;prepare("select a.calculated_risk, COUNT(*) AS num, CASE WHEN a.calculated_risk &gt;= " . $high . " THEN 'High' WHEN a.calculated_risk &lt; " . $high . " AND a.calculated_risk &gt;= " . $medium . " THEN 'Medium' WHEN a.calculated_risk &lt; " . $medium . " AND a.calculated_risk &gt;= " . $low . " THEN 'Low' WHEN a.calculated_risk &lt; " . $low . " AND a.calculated_risk &gt;= 0 THEN 'Insignificant' END AS level from `risk_scoring` a JOIN `risks` b ON a.id = b.id WHERE b.status != \"Closed\" GROUP BY level ORDER BY a.calculated_risk DESC");
      $stmt-&gt;execute();
  
      // Store the list in the array
      $array = $stmt-&gt;fetchAll();
  
      // Close the database connection
      db_close($db);
  
      // If the array is empty
      if (empty($array))
      {
              $data[] = array("No Data Available", 0);
      }
      // Otherwise
      else
      {
              // Create the data array
              foreach ($array as $row)
              {
                      $data[] = array($row['level'], (int)$row['num']);
              }
  
              $chart-&gt;series[] = array('type' =&gt; "pie",
                      'name' =&gt; "Level",
                      'data' =&gt; $data);
      }
  
  echo "&lt;div id=\"open_risk_level_pie\"&gt;&lt;/div&gt;\n";
  echo "&lt;script type=\"text/javascript\"&gt;";
  echo $chart-&gt;render("open_risk_level_pie");
  echo "&lt;/script&gt;\n";
  </code></pre>
  
  <p>}</p>