<?php
 
include('../lib/TinyPie.php');
 
?>
 
<html>
 
<body>
 
 
<a href="index.php"><< Back to list</a>
 
 
<fieldset>
 
<legend>2. Demo "shortcut" graph, 50/50 various sizes</legend>
 
<?php
 
/*
 
    A more compact way of producing the same result as in demo #1.
 
*/
 
echo TinyPie::QuickImg(256, array(array(50, '555555'), array(50, '00CC00')));
 
echo TinyPie::QuickImg(128, array(array(50, '555555'), array(50, '00CC00')));
 
echo TinyPie::QuickImg(64, array(array(50, '555555'), array(50, '00CC00')));
 
echo TinyPie::QuickImg(32, array(array(50, '555555'), array(50, '00CC00')));
 
echo TinyPie::QuickImg(16, array(array(50, '555555'), array(50, '00CC00')));
 
?>
 
</fieldset>
 
 
</body>
 
</html>
 
 |