diff --git a/site/formGraphe.php b/site/formGraphe.php index d7b482a..e702da1 100644 --- a/site/formGraphe.php +++ b/site/formGraphe.php @@ -42,7 +42,7 @@ $date_max = $maxs[0]; - + diff --git a/site/graphe.php b/site/graphe.php index e88a920..e08a96c 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -18,10 +18,10 @@ $theme_class=new UniversalTheme; $graph->SetTheme($theme_class); $graph->img->SetAntiAliasing(false); -$graph->title->Set('Filled Y-grid'); +$graph->title->Set('Capteur '.$_REQUEST['nom']); $graph->SetBox(false); -$graph->SetMargin(20,20,20,20); +$graph->SetMargin(40,30,40,50); $graph->img->SetAntiAliasing(); @@ -34,13 +34,26 @@ $graph->xgrid->SetLineStyle("solid"); $graph->xaxis->SetTickLabels($datax); $graph->xgrid->SetColor('#E3E3E3'); -// Create the first line +// Create the line $p = new LinePlot($datay); $graph->Add($p); $p->SetColor("#6495ED"); -$p->SetLegend('Capteur'); -$graph->legend->SetFrameWeight(1); +// Afficher les valeurs pour chaque point +$p->value->Show(); + +// Valeurs: Apparence de la police +$p->value->SetFormat('%.1f'); +$p->value->SetColor("red"); + +// Chaque point de la courbe **** +// Type de point +$p->mark->SetType(MARK_FILLEDCIRCLE); +// Couleur de remplissage +$p->mark->SetFillColor("green"); +// Taille +$p->mark->SetWidth(5); + // Output line $graph->Stroke(); diff --git a/site/graphique.php b/site/graphique.php index 9d806c9..22cad5d 100644 --- a/site/graphique.php +++ b/site/graphique.php @@ -28,8 +28,6 @@ else $start = $start." 00:00:00";

Graphe du capteur

-
- "; ?> diff --git a/site/header.php b/site/header.php index 2264dbd..90b9dec 100644 --- a/site/header.php +++ b/site/header.php @@ -9,12 +9,12 @@ require_once("accesBase.php") ; $membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']); ?> - - Ajouter une Raspberry - Ajouter un capteur + Raspberry + Capteur Envoyer un code Historique - Valeurs des capteurs + Graphiques + Valeurs Deconnexion