<?php
include('../lib/TinyPie.php');
?>
<html>
<body>
<a href="index.php"><< Back to list</a>
<fieldset>
<legend>1. Demo "full" graph, 50/50 various sizes</legend>
<?php
$g = new TinyPie(256);
$g->AddValue(50, 'CC0000');
$g->AddValue(50, '555555');
echo $g->GetAsImg();
$g = new TinyPie(128);
$g->AddValue(50, 'CC0000');
$g->AddValue(50, '555555');
echo $g->GetAsImg();
$g = new TinyPie(64);
$g->AddValue(50, 'CC0000');
$g->AddValue(50, '555555');
echo $g->GetAsImg();
$g = new TinyPie(32);
$g->AddValue(50, 'CC0000');
$g->AddValue(50, '555555');
echo $g->GetAsImg();
$g = new TinyPie(16);
$g->AddValue(50, 'CC0000');
$g->AddValue(50, '555555');
echo $g->GetAsImg();
?>
</fieldset>
</body>
</html>
|