adding queries for Open Cases vs. Completed Cases dashlet KPI
This commit is contained in:
@@ -127,6 +127,14 @@ Array
|
|||||||
$g->yellowTo = 90;
|
$g->yellowTo = 90;
|
||||||
$g->redFrom = 100;
|
$g->redFrom = 100;
|
||||||
$g->redTo = 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->centerLabel = $this->centerLabel;
|
||||||
$g->open = $this->open;
|
$g->open = $this->open;
|
||||||
$g->completed = $this->completed;
|
$g->completed = $this->completed;
|
||||||
|
|||||||
@@ -188,8 +188,8 @@
|
|||||||
if ($min % 5 == 0) {
|
if ($min % 5 == 0) {
|
||||||
$textToDisplay = sprintf("%d", (55-$min)*$this->maxValue/50 );
|
$textToDisplay = sprintf("%d", (55-$min)*$this->maxValue/50 );
|
||||||
$bbox = imagettfbbox(8, 0, $fontArial, $textToDisplay );
|
$bbox = imagettfbbox(8, 0, $fontArial, $textToDisplay );
|
||||||
$x1 = sin($ang) * ($radiusX - 2*$len) + $cX - $bbox[4] / 2;
|
$x1 = sin($ang) * ($radiusX - 2.5*$len) + $cX - $bbox[4] / 2;
|
||||||
$y1 = cos($ang) * ($radiusY - 2*$len) + $cY +2;// - abs($bbox[5]);
|
$y1 = cos($ang) * ($radiusY - 2.5*$len) + $cY +2;// - abs($bbox[5]);
|
||||||
imagettftext ( $im, 8, 0, $x1, $y1, $gray, $fontArial, $textToDisplay );
|
imagettftext ( $im, 8, 0, $x1, $y1, $gray, $fontArial, $textToDisplay );
|
||||||
}
|
}
|
||||||
$min++;
|
$min++;
|
||||||
|
|||||||
Reference in New Issue
Block a user