I can easily locate the title to be at the center or to left by using these commands:
$graph->setTitleLocation("center");
$graph->setTitleLocation("left");
… but if I use this:
$graph->setTitleLocation("right");
I don’t even see the graph anymore. Full code:
<?php
include('../phpgraphlib.php');
$graph = new PHPGraphLib(500, 350);
$data = array(12124, 5535, 43373, 22223, 90432, 23332, 15544, 24523, 32778, 38878, 28787, 33243, 34832, 32302);
$graph->addData($data);
$graph->setTitle('Widgets Produced');
$graph->setTitleLocation("right");
$graph->setGradient('red', 'maroon');
$graph->createGraph();