56 |
|
|
57 |
$graph->SetFrame($this->showframe); |
$graph->SetFrame($this->showframe); |
58 |
|
|
59 |
$graph->img->SetMargin(40,20,20,35); |
$graph->img->SetMargin(50,20,20,35); |
60 |
|
|
61 |
if ($this->type == 'LinePlot') |
if ($this->type == 'LinePlot') |
62 |
{ |
{ |
70 |
$b2plot->SetFillColor($this->barcolor); |
$b2plot->SetFillColor($this->barcolor); |
71 |
|
|
72 |
$graph->xaxis->scale->SetGrace(20); |
$graph->xaxis->scale->SetGrace(20); |
73 |
|
/* |
74 |
$LabelAngle = 0; |
$LabelAngle = 0; |
75 |
|
|
76 |
if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0) |
if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0) |
81 |
$graph->xaxis->SetLabelAngle($LabelAngle); |
$graph->xaxis->SetLabelAngle($LabelAngle); |
82 |
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7); |
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7); |
83 |
} |
} |
84 |
|
*/ |
85 |
$graph->title->Set($this->titre); |
$graph->title->Set($this->titre); |
86 |
|
|
87 |
//$graph->title->SetFont(FF_VERDANA,FS_NORMAL); |
//$graph->title->SetFont(FF_VERDANA,FS_NORMAL); |
112 |
// Draw a text box in the middle |
// Draw a text box in the middle |
113 |
$txt = "Données manquantes !"; |
$txt = "Données manquantes !"; |
114 |
$t = new Text($txt,ceil($width / 2),ceil($height/2)); |
$t = new Text($txt,ceil($width / 2),ceil($height/2)); |
115 |
$t->SetFont(FF_VERDANA, FS_BOLD, 10); |
//$t->SetFont(FF_VERDANA, FS_BOLD, 10); |
116 |
|
|
117 |
// How should the text box interpret the coordinates? |
// How should the text box interpret the coordinates? |
118 |
$t->Align('center','top'); |
$t->Align('center','top'); |