adding queries for Open Cases vs. Completed Cases dashlet KPI

This commit is contained in:
Fernando Ontiveros
2011-10-31 23:48:30 -04:00
parent ac813f51c2
commit 67722e3d7a
2 changed files with 10 additions and 2 deletions

View File

@@ -127,6 +127,14 @@ Array
$g->yellowTo = 90;
$g->redFrom = 100;
$g->redTo = 100;
$g->greenFrom = 50;
$g->greenTo = 100;
$g->yellowFrom = 30;
$g->yellowTo = 50;
$g->redFrom = 0;
$g->redTo = 30;
$g->centerLabel = $this->centerLabel;
$g->open = $this->open;
$g->completed = $this->completed;

View File

@@ -188,8 +188,8 @@
if ($min % 5 == 0) {
$textToDisplay = sprintf("%d", (55-$min)*$this->maxValue/50 );
$bbox = imagettfbbox(8, 0, $fontArial, $textToDisplay );
$x1 = sin($ang) * ($radiusX - 2*$len) + $cX - $bbox[4] / 2;
$y1 = cos($ang) * ($radiusY - 2*$len) + $cY +2;// - abs($bbox[5]);
$x1 = sin($ang) * ($radiusX - 2.5*$len) + $cX - $bbox[4] / 2;
$y1 = cos($ang) * ($radiusY - 2.5*$len) + $cY +2;// - abs($bbox[5]);
imagettftext ( $im, 8, 0, $x1, $y1, $gray, $fontArial, $textToDisplay );
}
$min++;