Constants

xlLegendPositionBottom

xlLegendPositionBottom

Legend positions

xlLegendPositionCorner

xlLegendPositionCorner

xlLegendPositionCustom

xlLegendPositionCustom

xlLegendPositionLeft

xlLegendPositionLeft

xlLegendPositionRight

xlLegendPositionRight

xlLegendPositionTop

xlLegendPositionTop

POSITION_RIGHT

POSITION_RIGHT

POSITION_LEFT

POSITION_LEFT

POSITION_BOTTOM

POSITION_BOTTOM

POSITION_TOP

POSITION_TOP

POSITION_TOPRIGHT

POSITION_TOPRIGHT

Properties

$_positionXLref

$_positionXLref : 

Type

$_position

$_position : string

Legend position

Type

string

$_overlay

$_overlay : boolean

Allow overlay of other elements?

Type

boolean

Methods

__construct()

__construct(  $position = self::POSITION_RIGHT, \PHPExcel_Chart_Layout  $layout = NULL,   $overlay = FALSE) 

Create a new PHPExcel_Chart_Legend

Parameters

$position
\PHPExcel_Chart_Layout $layout
$overlay

getPosition()

getPosition() : string

Get legend position as an excel string value

Returns

string

setPosition()

setPosition(string  $position = self::POSITION_RIGHT) 

Get legend position using an excel string value

Parameters

string $position

getPositionXL()

getPositionXL() : \number

Get legend position as an Excel internal numeric value

Returns

\number

setPositionXL()

setPositionXL(\number  $positionXL = self::xlLegendPositionRight) 

Set legend position using an Excel internal numeric value

Parameters

\number $positionXL

getOverlay()

getOverlay() : boolean

Get allow overlay of other elements?

Returns

boolean

setOverlay()

setOverlay(boolean  $overlay = FALSE) : boolean

Set allow overlay of other elements?

Parameters

boolean $overlay

Returns

boolean