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 54
| function diplaygrid2 (){
//$graph->xaxis->title->Set("Month");
$this->graph->SetScale("textlin",0,100);
$this->graph->yaxis->title->Set($this->titleleft);
$this->graph->yaxis->SetTitleMargin(30);
$this->graph->title->SetFont(FF_FONT1,FS_BOLD);
$this->graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$this->graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
// Turn the tickmarks
$this->graph->xaxis->SetTickSide(SIDE_DOWN);
$this->graph->yaxis->SetTickSide(SIDE_LEFT);
$this->graph->yaxis->SetColor('black','blue');
$this->graph->yaxis->SetLabelFormat('%3d%%');
// Setup month as labels on the X-axis
$this->graph->xaxis->SetTickLabels($this->Xaxis);
$this->graph->xaxis->SetFont(FF_ARIAL,FS_BOLD,10);
$this->graph->xaxis->SetLabelAngle(45);
$this->graph->yaxis->SetFont(FF_ARIAL,FS_BOLD,10);
// Create and add a new text
$txt=new Text("SLA Objective : ".$this->pourcenObjectif."%");
$txt->SetPos(600,65,'center','center');
$txt->SetFont(FF_FONT2,FS_BOLD);
$txt->ParagraphAlign('center');
$txt->SetBox('yellow','navy','gray');
$txt->SetColor('#008000');
$this->graph->AddText($txt);
$txt=new Text($this->pourcenObjectif."%");
$txt->SetPos(20,150,'center','center');
$txt->SetFont(FF_FONT2,FS_BOLD);
$txt->ParagraphAlign('center');
$txt->SetBox('yellow','navy','gray');
$txt->SetColor('#008000');
$this->graph->AddText($txt);
// Create accumulative graph
$lplot = new LinePlot($this->sla_trigger);
$this->graph->Add($lplot);
$lplot->SetWeight(5);
$lplot->SetFillColor($this->lineobjectifcolordown);
$lplot->SetColor($this->lineobjectifcolor);
$lplot->SetStyle('solid');
} |
Partager