function pData::initialise
Search API
5.x pData.class.php | pData::initialise($Serie) |
1 call to pData::initialise()
- pData::addPoints in inc/
pchart/ pchart/ class/ pData.class.php
File
- inc/
pchart/ 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;
}
}