This Pie chart renders with template "default_pie.php" containing a chart script, which lets the segments explode when clicked. For tooltips it uses its own css class instead of the default class. It uses ini-file "pie_3d.ini" to set its default properties.
<?php

include_once "environment.php";
use phpRGraph\rgraph_chart;
use phpRGraph\rgraph_options;

// rgraph chart
$template = "default_pie.php";
$draw_option = "draw().implode();";
$width = "600";
$height = "350";
$data = array( 400,500,500,700,500,700,400,1000 );
$labels = array('Mavis','Kevin','Luis','June','Olga',
'Luis','Pete','Bridget');

$chart = new rgraph_chart("cvs", $data, "Pie");
$options = new rgraph_options("pie_3d.ini");

$options->set_option("labelsSticksLinewidth", 2);
$options->set_option("title", "3d Pie Chart with Tooltips and Chart Script\n");
$options->set_option("labels", $labels);
$options->set_option("radius", 90);
// tooltips
$options->set_tooltip($data, "#val#€ <br />(#percent#% of #total# €)");
$options->set_option("tooltipsCssClass", "chart_tooltips_css");

$chart->set_options($options);
$rgraph_json = $chart->toString();

$event_script = "";
include_once ($templates . $template);
?>