public function setSerieOnAxis($Series, $AxisID)
    {
        if (!is_array($Series)) {
            $Series = $this->convertToArray($Series);
        }
        foreach ($Series as $Serie) {
            $PreviousAxis = $this->Data["Series"][$Serie]["Axis"];

            /* Create missing axis */
            if (!isset($this->Data["Axis"][$AxisID])) {
                $this->Data["Axis"][$AxisID]["Position"] = AXIS_POSITION_LEFT;
                $this->Data["Axis"][$AxisID]["Identity"] = AXIS_Y;
            }

            $this->Data["Series"][$Serie]["Axis"] = $AxisID;

            /* Cleanup unused axis */
            $Found = false;
            foreach ($this->Data["Series"] as $Values) {
                if ($Values["Axis"] == $PreviousAxis) {
                    $Found = true;
                }
            }
            if (!$Found) {
                unset($this->Data["Axis"][$PreviousAxis]);
            }
        }
    }
public function setSerieOnAxis($Series, $AxisID)
    {
        if (!is_array($Series)) {
            $Series = $this->convertToArray($Series);
        }
        foreach ($Series as $Serie) {
            $PreviousAxis = $this->Data["Series"][$Serie]["Axis"];

            /* Create missing axis */
            if (!isset($this->Data["Axis"][$AxisID])) {
                $this->Data["Axis"][$AxisID]["Position"] = AXIS_POSITION_LEFT;
                $this->Data["Axis"][$AxisID]["Identity"] = AXIS_Y;
            }

            $this->Data["Series"][$Serie]["Axis"] = $AxisID;

            /* Cleanup unused axis */
            $Found = false;
            foreach ($this->Data["Series"] as $Values) {
                if ($Values["Axis"] == $PreviousAxis) {
                    $Found = true;
                }
            }
            if (!$Found) {
                unset($this->Data["Axis"][$PreviousAxis]);
            }
        }
    }
public function setSerieOnAxis ( $ Series , $ AxisID ) { if ( ! is_array ( $ Series ) ) { $ Series = $ this -> convertToArray ( $ Series ) ; } foreach ( $ Series as $ Serie ) { $ PreviousAxis = $ this -> Data [ "Series" ] [ $ Serie ] [ "Axis" ] ; /* Create missing axis */ if ( ! isset ( $ this -> Data [ "Axis" ] [ $ AxisID ] ) ) { $ this -> Data [ "Axis" ] [ $ AxisID ] [ "Position" ] = AXIS_POSITION_LEFT ; $ this -> Data [ "Axis" ] [ $ AxisID ] [ "Identity" ] = AXIS_Y ; } $ this -> Data [ "Series" ] [ $ Serie ] [ "Axis" ] = $ AxisID ; /* Cleanup unused axis */ $ Found = false ; foreach ( $ this -> Data [ "Series" ] as $ Values ) { if ( $ Values [ "Axis" ] == $ PreviousAxis ) { $ Found = true ; } } if ( ! $ Found ) { unset ( $ this -> Data [ "Axis" ] [ $ PreviousAxis ] ) ; } } }
Associate one data serie with one axis
@param mixed $Series
@param int $AxisID
Associate one data serie with one axis