function pBubble::resetSeriesColors in Visitors 7.2
Same name and namespace in other branches
- 7 pChart/class/pBubble.class.php \pBubble::resetSeriesColors()
1 call to pBubble::resetSeriesColors()
- pBubble::drawBubbleChart in pChart/
class/ pBubble.class.php
File
- pChart/
class/ pBubble.class.php, line 92
Class
Code
function resetSeriesColors() {
$Data = $this->pDataObject
->getData();
$Palette = $this->pDataObject
->getPalette();
$ID = 0;
foreach ($Data["Series"] as $SerieName => $SeriesParameters) {
if ($SeriesParameters["isDrawable"]) {
$this->pDataObject->Data["Series"][$SerieName]["Color"]["R"] = $Palette[$ID]["R"];
$this->pDataObject->Data["Series"][$SerieName]["Color"]["G"] = $Palette[$ID]["G"];
$this->pDataObject->Data["Series"][$SerieName]["Color"]["B"] = $Palette[$ID]["B"];
$this->pDataObject->Data["Series"][$SerieName]["Color"]["Alpha"] = $Palette[$ID]["Alpha"];
$ID++;
}
}
}