Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php
public function setPosition($position)
    {
        if (!in_array($position, self::$positionXLref)) {
            return false;
        }

        $this->position = $position;

        return true;
    }
public function setPosition($position)
    {
        if (!in_array($position, self::$positionXLref)) {
            return false;
        }

        $this->position = $position;

        return true;
    }
public function setPosition ( $ position ) { if ( ! in_array ( $ position , self :: $ positionXLref ) ) { return false ; } $ this -> position = $ position ; return true ; }
Get legend position using an excel string value.

@param string $position see self::POSITION_*

@return bool
Get legend position using an excel string value .