function pData::setSerieWeight

5.x pData.class.php pData::setSerieWeight($Series, $Weight = 0)

File

inc/pchart/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;
    }
  }
}