adding queries for Open Cases vs. Completed Cases dashlet KPI
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user