Te felicito, algunos usuarios solo esperan a que hagan el trabajo por ellos
Yo haría una gráfica de barras algo así:
<?php
$fuente = "arial.ttf";
imageline ($myImage, 50, 240, 260, 240, $darkgray); imageline ($myImage, 50, 40, 50, 240, $darkgray);
imagettftext($myImage, 10, 0, 26, 243, $black, $fuente, " 0"); imagettftext($myImage, 10, 0, 26, 210, $black, $fuente, " 20"); imagettftext($myImage, 10, 0, 26, 177, $black, $fuente, " 40"); imagettftext($myImage, 10, 0, 26, 144, $black, $fuente, " 60"); imagettftext($myImage, 10, 0, 26, 111, $black, $fuente, " 80"); imagettftext($myImage, 10, 0, 26, 78, $black, $fuente, "100");
//Los datos llegan de 0 a 100 (porcentaje)
$numero1 = 20;
$numero2 = 40;
$numero3 = 60;
$numero4 = 100;
$dato1 = 240-(((240-75)/100)*$numero1);
$dato2 = 240-(((240-75)/100)*$numero2);
$dato3 = 240-(((240-75)/100)*$numero3);
$dato4 = 240-(((240-75)/100)*$numero4);
header ("Content-type: image/png"); ?>
Recuerda agregar el archivo arial.ttf en el mismo directorio de tu .php