You are here

function pData::setSerieWeight in Visitors 7.2

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

File

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

Class

pData

Code

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