You are here

function pData::reverseSerie in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pData.class.php \pData::reverseSerie()

File

pChart/class/pData.class.php, line 132

Class

pData

Code

function reverseSerie($Series) {
  if (!is_array($Series)) {
    $Series = $this
      ->convertToArray($Series);
  }
  foreach ($Series as $Key => $Serie) {
    if (isset($this->Data["Series"][$Serie]["Data"])) {
      $this->Data["Series"][$Serie]["Data"] = array_reverse($this->Data["Series"][$Serie]["Data"]);
    }
  }
}