Properties

$_name

$_name : string

Chart Name

Type

string

$_plotVisibleOnly

$_plotVisibleOnly : bool

Plot Visible Only

Type

bool

$_displayBlanksAs

$_displayBlanksAs : string

Display Blanks as

Type

string

$_topLeftCellRef

$_topLeftCellRef : string

Top-Left Cell Position

Type

string

$_topLeftXOffset

$_topLeftXOffset : int

Top-Left X-Offset

Type

int

$_topLeftYOffset

$_topLeftYOffset : int

Top-Left Y-Offset

Type

int

$_bottomRightCellRef

$_bottomRightCellRef : string

Bottom-Right Cell Position

Type

string

$_bottomRightXOffset

$_bottomRightXOffset : int

Bottom-Right X-Offset

Type

int

$_bottomRightYOffset

$_bottomRightYOffset : int

Bottom-Right Y-Offset

Type

int

Methods

__construct()

__construct(mixed  $name, \PHPExcel_Chart_Title  $title = null, \PHPExcel_Chart_Legend  $legend = null, \PHPExcel_Chart_PlotArea  $plotArea = null, mixed  $plotVisibleOnly = true, mixed  $displayBlanksAs = '0', \PHPExcel_Chart_Title  $xAxisLabel = null, \PHPExcel_Chart_Title  $yAxisLabel = null) : mixed

Create a new PHPExcel_Chart

Parameters

mixed $name
\PHPExcel_Chart_Title $title
\PHPExcel_Chart_Legend $legend
\PHPExcel_Chart_PlotArea $plotArea
mixed $plotVisibleOnly
mixed $displayBlanksAs
\PHPExcel_Chart_Title $xAxisLabel
\PHPExcel_Chart_Title $yAxisLabel

Returns

mixed —

getName()

getName() : string

Get Name

Returns

string —

getWorksheet()

getWorksheet() : \PHPExcel_Worksheet

Get Worksheet

Returns

\PHPExcel_Worksheet —

setWorksheet()

setWorksheet(\PHPExcel_Worksheet  $pValue = null) : \PHPExcel_Chart

Set Worksheet

Parameters

\PHPExcel_Worksheet $pValue

Throws

\PHPExcel_Chart_Exception

Returns

\PHPExcel_Chart —

getTitle()

getTitle() : \PHPExcel_Chart_Title

Get Title

Returns

\PHPExcel_Chart_Title —

setTitle()

setTitle(\PHPExcel_Chart_Title  $title) : \PHPExcel_Chart

Set Title

Parameters

\PHPExcel_Chart_Title $title

Returns

\PHPExcel_Chart —

getLegend()

getLegend() : \PHPExcel_Chart_Legend

Get Legend

Returns

\PHPExcel_Chart_Legend —

setLegend()

setLegend(\PHPExcel_Chart_Legend  $legend) : \PHPExcel_Chart

Set Legend

Parameters

\PHPExcel_Chart_Legend $legend

Returns

\PHPExcel_Chart —

getXAxisLabel()

getXAxisLabel() : \PHPExcel_Chart_Title

Get X-Axis Label

Returns

\PHPExcel_Chart_Title —

setXAxisLabel()

setXAxisLabel(\PHPExcel_Chart_Title  $label) : \PHPExcel_Chart

Set X-Axis Label

Parameters

\PHPExcel_Chart_Title $label

Returns

\PHPExcel_Chart —

getYAxisLabel()

getYAxisLabel() : \PHPExcel_Chart_Title

Get Y-Axis Label

Returns

\PHPExcel_Chart_Title —

setYAxisLabel()

setYAxisLabel(\PHPExcel_Chart_Title  $label) : \PHPExcel_Chart

Set Y-Axis Label

Parameters

\PHPExcel_Chart_Title $label

Returns

\PHPExcel_Chart —

getPlotArea()

getPlotArea() : \PHPExcel_Chart_PlotArea

Get Plot Area

Returns

\PHPExcel_Chart_PlotArea —

getPlotVisibleOnly()

getPlotVisibleOnly() : bool

Get Plot Visible Only

Returns

bool —

setPlotVisibleOnly()

setPlotVisibleOnly(bool  $plotVisibleOnly = true) : \PHPExcel_Chart

Set Plot Visible Only

Parameters

bool $plotVisibleOnly

Returns

\PHPExcel_Chart —

getDisplayBlanksAs()

getDisplayBlanksAs() : string

Get Display Blanks as

Returns

string —

setDisplayBlanksAs()

setDisplayBlanksAs(string  $displayBlanksAs = '0') : \PHPExcel_Chart

Set Display Blanks as

Parameters

string $displayBlanksAs

Returns

\PHPExcel_Chart —

setTopLeftPosition()

setTopLeftPosition(string  $cell, int  $xOffset = null, int  $yOffset = null) : \PHPExcel_Chart

Set the Top Left position for the chart

Parameters

string $cell
int $xOffset
int $yOffset

Returns

\PHPExcel_Chart —

getTopLeftPosition()

getTopLeftPosition() : array

Get the top left position of the chart

Returns

array —

an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell

getTopLeftCell()

getTopLeftCell() : string

Get the cell address where the top left of the chart is fixed

Returns

string —

setTopLeftCell()

setTopLeftCell(string  $cell) : \PHPExcel_Chart

Set the Top Left cell position for the chart

Parameters

string $cell

Returns

\PHPExcel_Chart —

setTopLeftOffset()

setTopLeftOffset(int  $xOffset = null, int  $yOffset = null) : \PHPExcel_Chart

Set the offset position within the Top Left cell for the chart

Parameters

int $xOffset
int $yOffset

Returns

\PHPExcel_Chart —

getTopLeftOffset()

getTopLeftOffset() : int[]

Get the offset position within the Top Left cell for the chart

Returns

int[] —

setTopLeftXOffset()

setTopLeftXOffset(mixed  $xOffset) : mixed

Parameters

mixed $xOffset

Returns

mixed —

getTopLeftXOffset()

getTopLeftXOffset() : mixed

Returns

mixed —

setTopLeftYOffset()

setTopLeftYOffset(mixed  $yOffset) : mixed

Parameters

mixed $yOffset

Returns

mixed —

getTopLeftYOffset()

getTopLeftYOffset() : mixed

Returns

mixed —

setBottomRightPosition()

setBottomRightPosition(string  $cell, int  $xOffset = null, int  $yOffset = null) : \PHPExcel_Chart

Set the Bottom Right position of the chart

Parameters

string $cell
int $xOffset
int $yOffset

Returns

\PHPExcel_Chart —

getBottomRightPosition()

getBottomRightPosition() : array

Get the bottom right position of the chart

Returns

array —

an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell

setBottomRightCell()

setBottomRightCell(mixed  $cell) : mixed

Parameters

mixed $cell

Returns

mixed —

getBottomRightCell()

getBottomRightCell() : string

Get the cell address where the bottom right of the chart is fixed

Returns

string —

setBottomRightOffset()

setBottomRightOffset(int  $xOffset = null, int  $yOffset = null) : \PHPExcel_Chart

Set the offset position within the Bottom Right cell for the chart

Parameters

int $xOffset
int $yOffset

Returns

\PHPExcel_Chart —

getBottomRightOffset()

getBottomRightOffset() : int[]

Get the offset position within the Bottom Right cell for the chart

Returns

int[] —

setBottomRightXOffset()

setBottomRightXOffset(mixed  $xOffset) : mixed

Parameters

mixed $xOffset

Returns

mixed —

getBottomRightXOffset()

getBottomRightXOffset() : mixed

Returns

mixed —

setBottomRightYOffset()

setBottomRightYOffset(mixed  $yOffset) : mixed

Parameters

mixed $yOffset

Returns

mixed —

getBottomRightYOffset()

getBottomRightYOffset() : mixed

Returns

mixed —

refresh()

refresh() : mixed

Returns

mixed —

render()

render(mixed  $outputDestination = null) : mixed

Parameters

mixed $outputDestination

Returns

mixed —