PHP Is Open Source Programming Language You Can Download and use It, You required xampp server and wamp server . You download From xampp server from https://www.apachefriends.org/download.html.
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://php.net/.
or search from google with Libraries Name you get jar file related it and also http://php.net/ is a official site
Creating a Pie Graph Using imagefilledarc()
<?php
define("WIDTH", 200);
define("HEIGHT", 200);
$piegraph_data = array (10, 5, 20, 40, 10, 15);
$img = imagecreate(WIDTH, HEIGHT);
$background = $white = imagecolorallocate($img, 0xFF, 0xFF, 0xFF);
$black = imagecolorallocate($img, 0, 0, 0);
$center_x = (int)WIDTH/2;
$center_y = (int)HEIGHT/2;
imagerectangle($img, 0, 0, WIDTH-1, HEIGHT-1, $black);
$last_angle = 0;
$percentage = 30;
$arclen = (360 * $percentage) / 100;
imagefilledarc($img,$center_x,$center_y,WIDTH-20,HEIGHT-20,$last_angle,($last_angle + $arclen),$black,IMG_ARC_EDGED | IMG_ARC_NOFILL);
header("Content-Type: image/png");
imagepng($img);
?>