Location: PHPKode > scripts > AdRotate > adrotate/library/graph_single_ad.php
<?php
include("phpgraphlib.php");

$title = unserialize(urldecode(stripslashes($_GET['title'])));
$data = unserialize(urldecode(stripslashes($_GET['data'])));

$graph=new PHPGraphLib(1024,330);

$graph->addData($data);

$graph->setBarColor('#14568A');
$graph->setTitle($title);

$graph->setupYAxis(false);
$graph->setupXAxis(15, '#EEE');

$graph->setDataValues(true);

$graph->setTitleLocation('left');
$graph->setTitleColor('#262626');

$graph->setGrid(false);
$graph->setLegend(false);
$graph->setYValues(false);

$graph->createGraph();
?>
Return current item: AdRotate