You are here

function pPie::shift in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pPie.class.php \pPie::shift()
1 call to pPie::shift()
pPie::writePieLabel in pChart/class/pPie.class.php

File

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;
    }
  }
}