Commit 594ae01e1f881cada77b06c6fbac01674f6acb16
1 parent
789149e6
Test Graphe
Showing
1 changed file
with
13 additions
and
13 deletions
Show diff stats
site/graphe.php
@@ -6,11 +6,11 @@ require_once('accesBase.php'); | @@ -6,11 +6,11 @@ require_once('accesBase.php'); | ||
6 | $history1 = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); | 6 | $history1 = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); |
7 | $datay1 = makeArray($history1, "value"); | 7 | $datay1 = makeArray($history1, "value"); |
8 | 8 | ||
9 | -$history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | ||
10 | -$datay2 = makeArray($history2, "value"); | 9 | +//$history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); |
10 | +//$datay2 = makeArray($history2, "value"); | ||
11 | 11 | ||
12 | -$history3 = getHistory('Fusion', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | ||
13 | -$datay3 = makeArray($history3, "value"); | 12 | +//$history3 = getHistory('Fusion', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); |
13 | +//$datay3 = makeArray($history3, "value"); | ||
14 | 14 | ||
15 | //$datay1 = array(20,15,23,15); | 15 | //$datay1 = array(20,15,23,15); |
16 | //$datay2 = array(12,9,42,8); | 16 | //$datay2 = array(12,9,42,8); |
@@ -24,7 +24,7 @@ $theme_class=new UniversalTheme; | @@ -24,7 +24,7 @@ $theme_class=new UniversalTheme; | ||
24 | 24 | ||
25 | $graph->SetTheme($theme_class); | 25 | $graph->SetTheme($theme_class); |
26 | $graph->img->SetAntiAliasing(false); | 26 | $graph->img->SetAntiAliasing(false); |
27 | -$graph->title->Set('Filled Y-grid'); | 27 | +$graph->title->Set('Graphique'); |
28 | $graph->SetBox(false); | 28 | $graph->SetBox(false); |
29 | 29 | ||
30 | $graph->SetMargin(40,20,36,63); | 30 | $graph->SetMargin(40,20,36,63); |
@@ -47,16 +47,16 @@ $p1->SetColor("#6495ED"); | @@ -47,16 +47,16 @@ $p1->SetColor("#6495ED"); | ||
47 | $p1->SetLegend('Line 1'); | 47 | $p1->SetLegend('Line 1'); |
48 | 48 | ||
49 | // Create the second line | 49 | // Create the second line |
50 | -$p2 = new LinePlot($datay2); | ||
51 | -$graph->Add($p2); | ||
52 | -$p2->SetColor("#B22222"); | ||
53 | -$p2->SetLegend('Line 2'); | 50 | +//$p2 = new LinePlot($datay2); |
51 | +//$graph->Add($p2); | ||
52 | +//$p2->SetColor("#B22222"); | ||
53 | +//$p2->SetLegend('Line 2'); | ||
54 | 54 | ||
55 | // Create the third line | 55 | // Create the third line |
56 | -$p3 = new LinePlot($datay3); | ||
57 | -$graph->Add($p3); | ||
58 | -$p3->SetColor("#FF1493"); | ||
59 | -$p3->SetLegend('Line 3'); | 56 | +//$p3 = new LinePlot($datay3); |
57 | +//$graph->Add($p3); | ||
58 | +//$p3->SetColor("#FF1493"); | ||
59 | +//$p3->SetLegend('Line 3'); | ||
60 | 60 | ||
61 | $graph->legend->SetFrameWeight(1); | 61 | $graph->legend->SetFrameWeight(1); |
62 | 62 |