function pData::initialise in Visitors 7
Same name and namespace in other branches
- 7.2 pChart/class/pData.class.php \pData::initialise()
1 call to pData::initialise()
- pData::addPoints in pChart/
class/ pData.class.php
File
- pChart/
class/ pData.class.php, line 585
Class
Code
function initialise($Serie) {
if (isset($this->Data["Series"])) {
$ID = count($this->Data["Series"]);
}
else {
$ID = 0;
}
$this->Data["Series"][$Serie]["Description"] = $Serie;
$this->Data["Series"][$Serie]["isDrawable"] = TRUE;
$this->Data["Series"][$Serie]["Picture"] = NULL;
$this->Data["Series"][$Serie]["Max"] = NULL;
$this->Data["Series"][$Serie]["Min"] = NULL;
$this->Data["Series"][$Serie]["Axis"] = 0;
$this->Data["Series"][$Serie]["Ticks"] = 0;
$this->Data["Series"][$Serie]["Weight"] = 0;
$this->Data["Series"][$Serie]["Shape"] = SERIE_SHAPE_FILLEDCIRCLE;
if (isset($this->Palette[$ID])) {
$this->Data["Series"][$Serie]["Color"] = $this->Palette[$ID];
}
else {
$this->Data["Series"][$Serie]["Color"]["R"] = rand(0, 255);
$this->Data["Series"][$Serie]["Color"]["G"] = rand(0, 255);
$this->Data["Series"][$Serie]["Color"]["B"] = rand(0, 255);
$this->Data["Series"][$Serie]["Color"]["Alpha"] = 100;
}
}