public function initialise($Serie)
    {
        $ID = 0;
        if (isset($this->Data["Series"])) {
            $ID = count($this->Data["Series"]);
        }

        $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;
        }
        $this->Data["Series"][$Serie]["Data"] = [];
    }
public function initialise($Serie)
    {
        $ID = 0;
        if (isset($this->Data["Series"])) {
            $ID = count($this->Data["Series"]);
        }

        $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;
        }
        $this->Data["Series"][$Serie]["Data"] = [];
    }
public function initialise ( $ Serie ) { $ ID = 0 ; if ( isset ( $ this -> Data [ "Series" ] ) ) { $ ID = count ( $ this -> Data [ "Series" ] ) ; } $ 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 ; } $ this -> Data [ "Series" ] [ $ Serie ] [ "Data" ] = [ ] ; }
Initialise a given serie
@param string $Serie
Initialise a given serie