mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2011-04-06 Sergio Martin <sergio.martin@artica.es>
* include/graphs/pChart/pData.class.php include/graphs/pChart/pDraw.class.php: Fixed avoid zero values into area graphs and clean code git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e921281e59
commit
236086cb9e
@ -1,3 +1,9 @@
|
|||||||
|
2011-04-06 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/graphs/pChart/pData.class.php
|
||||||
|
include/graphs/pChart/pDraw.class.php: Fixed avoid zero values
|
||||||
|
into area graphs and clean code
|
||||||
|
|
||||||
2011-04-05 Miguel de Dios <miguel.dedios@artica.es>
|
2011-04-05 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
* include/functions_fsgraph.php, include/functions_graph.php,
|
* include/functions_fsgraph.php, include/functions_graph.php,
|
||||||
include/graphs/functions_utils.php, include/fgraph.php: cleaned source code
|
include/graphs/functions_utils.php, include/fgraph.php: cleaned source code
|
||||||
|
@ -348,7 +348,7 @@
|
|||||||
$BorderG = isset($Format["BorderG"]) ? $Format["BorderG"] : $G;
|
$BorderG = isset($Format["BorderG"]) ? $Format["BorderG"] : $G;
|
||||||
$BorderB = isset($Format["BorderB"]) ? $Format["BorderB"] : $B;
|
$BorderB = isset($Format["BorderB"]) ? $Format["BorderB"] : $B;
|
||||||
|
|
||||||
if ( isset($this->Data["Series"][$Serie]) )
|
if (isset($this->Data["Series"][$Serie]) )
|
||||||
{
|
{
|
||||||
$OldR = $this->Data["Series"][$Serie]["Color"]["R"];
|
$OldR = $this->Data["Series"][$Serie]["Color"]["R"];
|
||||||
$OldG = $this->Data["Series"][$Serie]["Color"]["G"];
|
$OldG = $this->Data["Series"][$Serie]["Color"]["G"];
|
||||||
|
@ -3050,7 +3050,7 @@
|
|||||||
$DisplayB = isset($Format["DisplayB"]) ? $Format["DisplayB"] : 0;
|
$DisplayB = isset($Format["DisplayB"]) ? $Format["DisplayB"] : 0;
|
||||||
|
|
||||||
$Data = $this->DataSet->getData();
|
$Data = $this->DataSet->getData();
|
||||||
debugPrint($Data, '/tmp/logo');
|
|
||||||
list($XMargin,$XDivs) = $this->scaleGetXSettings();
|
list($XMargin,$XDivs) = $this->scaleGetXSettings();
|
||||||
foreach($Data["Series"] as $SerieName => $Serie)
|
foreach($Data["Series"] as $SerieName => $Serie)
|
||||||
{
|
{
|
||||||
@ -3689,7 +3689,6 @@
|
|||||||
$R = $Serie["Color"]["R"];
|
$R = $Serie["Color"]["R"];
|
||||||
$G = $Serie["Color"]["G"];
|
$G = $Serie["Color"]["G"];
|
||||||
$B = $Serie["Color"]["B"];
|
$B = $Serie["Color"]["B"];
|
||||||
debugPrint($Serie["Color"], true);
|
|
||||||
if (isset($Serie["Color"]["BorderR"]))
|
if (isset($Serie["Color"]["BorderR"]))
|
||||||
$BorderR = $Serie["Color"]["BorderR"];
|
$BorderR = $Serie["Color"]["BorderR"];
|
||||||
else
|
else
|
||||||
@ -3732,14 +3731,16 @@
|
|||||||
foreach($PosArray as $Key => $Y)
|
foreach($PosArray as $Key => $Y)
|
||||||
{
|
{
|
||||||
// Hack to avoid draw zero values
|
// Hack to avoid draw zero values
|
||||||
debugPrint((int)$DisplayZeros . " - " . $Serie["Data"][$Key]." - ".$lastKey, '/tmp/logo');
|
if(isset($Serie["Data"][$Key + 1])) {
|
||||||
if(!$DisplayZeros && $Serie["Data"][$Key] == 0 && $lastKey == 0) {
|
$nextKey = $Serie["Data"][$Key + 1];
|
||||||
debugPrint("HOLA", "/tmp/logo");
|
}
|
||||||
|
else {
|
||||||
|
$nextKey = -1;
|
||||||
|
}
|
||||||
|
if((!$DisplayZeros && $Serie["Data"][$Key] == 0 && $lastKey == 0 && $nextKey == 0 && $Key != 0)) {
|
||||||
$Y = VOID;
|
$Y = VOID;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
//debugPrint("ADIOS", "/tmp/logo");
|
|
||||||
}
|
|
||||||
$lastKey = $Serie["Data"][$Key];
|
$lastKey = $Serie["Data"][$Key];
|
||||||
|
|
||||||
if ( $DisplayValues && $Serie["Data"][$Key] != VOID )
|
if ( $DisplayValues && $Serie["Data"][$Key] != VOID )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user