Beispiel #1
0
<?php

require 'chart.php';
require 'data.php';
$chart = new chart(300, 200, "example26");
$chart->set_font("/usr/share/texmf/fonts/type1/adobe/utopia/putb8a.pfb", "type1");
$chart->set_title("Using The Adobe Utopia Font");
$chart->plot($data);
$chart->stroke();
?>

Beispiel #2
0
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Chart Test</title>
</head>
<body>

<h4>Modulus Video Chart:</h4>
<?php 
$mygraph = new chart(300, 200);
$mygraph->plot($data);
$mygraph->stroke();
?>
</body>
</html>