I hope some of you have worked with this tool, you may find it at http://www.phplot.com/.
I have the following code:
include("phplot.php");
$graph = new PHPlot;
$example_data = array(
array('',$benenviats,$retornats),
array('',$benenviats,$retornats),
);
$graph->SetFileFormat("PNG");
$graph->SetImageArea(450,350);
$graph->SetPlotAreaPixels(50,50,300,350);
$graph->SetLegendPixels(300,50,0);
$graph->SetDataValues($example_data);
$graph->SetPlotType('pie');
$graph->SetLabelScalePosition(1.3);
$graph->SetLegend(array("$benenviats Enviats amb exit","$retornats Retornats"));
$graph->SetTitle("$enviats mails enviats");
//Draw it
$graph->DrawGraph();
The code works more or less fine, but I expected to get a 450x350 image (SetImageArea(450,350)😉 and I get a 600x400 image with an inner area of 450x350.
How could I get an image with only the inner area? Am I doing something wrong? Should I look for another library?