1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Historigramme des AssMat</title>
<link rel="stylesheet" media="screen" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
Historigramme des cinqs dernière mise à jour Assmat
<hr>
<?php
mysql_connect("*****","*****","*****") ;
mysql_select_db("*****") ;
mysql_query("SET NAMES 'utf8'");
$requete = mysql_query("select * from date order by id_date limit 0,4");
while ( $ligne = mysql_fetch_row($requete) ){
$ecart = $ligne[3] ;
echo"Une donnée : $ecart <br>";
}
require_once "artichow/BarPlot.class.php";
$graph = new Graph(400, 400);
$graph->setAntiAliasing(TRUE);
$values = array(19, 42, 15, -25, 3);
$plot = new BarPlot($values);
$plot->setBarColor(
new Color(250, 230, 180)
);
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(3);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
$graph->add($plot);
$graph->draw();
?>
</body>
</html> |
Partager