function pData::setSerieDescription in Visitors 7.2
Same name and namespace in other branches
- 7 pChart/class/pData.class.php \pData::setSerieDescription()
1 call to pData::setSerieDescription()
- pData::createFunctionSerie in pChart/
class/ pData.class.php
File
- pChart/
class/ pData.class.php, line 158
Class
Code
function setSerieDescription($Series, $Description = "My serie") {
if (!is_array($Series)) {
$Series = $this
->convertToArray($Series);
}
foreach ($Series as $Key => $Serie) {
if (isset($this->Data["Series"][$Serie])) {
$this->Data["Series"][$Serie]["Description"] = $Description;
}
}
}