function pPie::shift

5.x pPie.class.php pPie::shift($StartAngle, $EndAngle, $Offset, $Reversed)
1 call to pPie::shift()
pPie::writePieLabel in inc/pchart/pchart/class/pPie.class.php

File

inc/pchart/pchart/class/pPie.class.php, line 850

Class

pPie

Code

function shift($StartAngle, $EndAngle, $Offset, $Reversed) 
 {
  if ($Reversed) {
    $Offset = -$Offset;
  }
  foreach ($this->LabelPos as $Key => $Settings) 
   {
    if ($Settings ["Angle"] > $StartAngle && $Settings ["Angle"] <= $EndAngle) {
      $this->LabelPos [$Key]["YTop"] = $Settings ["YTop"] + $Offset;
      $this->LabelPos [$Key]["YBottom"] = $Settings ["YBottom"] + $Offset;
      $this->LabelPos [$Key]["Y2"] = $Settings ["Y2"] + $Offset;
    }
  }
}