\PHPExcel_Chart

PHPExcel_Chart

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Summary

Methods
Properties
Constants
__construct()
getName()
getWorksheet()
setWorksheet()
getTitle()
setTitle()
getLegend()
setLegend()
getXAxisLabel()
setXAxisLabel()
getYAxisLabel()
setYAxisLabel()
getPlotArea()
getPlotVisibleOnly()
setPlotVisibleOnly()
getDisplayBlanksAs()
setDisplayBlanksAs()
getChartAxisY()
getChartAxisX()
getMajorGridlines()
getMinorGridlines()
setTopLeftPosition()
getTopLeftPosition()
getTopLeftCell()
setTopLeftCell()
setTopLeftOffset()
getTopLeftOffset()
setTopLeftXOffset()
getTopLeftXOffset()
setTopLeftYOffset()
getTopLeftYOffset()
setBottomRightPosition()
getBottomRightPosition()
setBottomRightCell()
getBottomRightCell()
setBottomRightOffset()
getBottomRightOffset()
setBottomRightXOffset()
getBottomRightXOffset()
setBottomRightYOffset()
getBottomRightYOffset()
refresh()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$worksheet
$title
$legend
$xAxisLabel
$yAxisLabel
$plotArea
$plotVisibleOnly
$displayBlanksAs
$yAxis
$xAxis
$majorGridlines
$minorGridlines
$topLeftCellRef
$topLeftXOffset
$topLeftYOffset
$bottomRightCellRef
$bottomRightXOffset
$bottomRightYOffset
N/A

Properties

$name

$name : string

Chart Name

Type

string —

$plotVisibleOnly

$plotVisibleOnly : bool

Plot Visible Only

Type

bool —

$displayBlanksAs

$displayBlanksAs : string

Display Blanks as

Type

string —

$majorGridlines

$majorGridlines : \PHPExcel_Chart_GridLines

Chart Major Gridlines as

Type

PHPExcel_Chart_GridLines —

$minorGridlines

$minorGridlines : \PHPExcel_Chart_GridLines

Chart Minor Gridlines as

Type

PHPExcel_Chart_GridLines —

$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, \PHPExcel_Chart_Axis  $xAxis = null, \PHPExcel_Chart_Axis  $yAxis = null, \PHPExcel_Chart_GridLines  $majorGridlines = null, \PHPExcel_Chart_GridLines  $minorGridlines = 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
\PHPExcel_Chart_Axis $xAxis
\PHPExcel_Chart_Axis $yAxis
\PHPExcel_Chart_GridLines $majorGridlines
\PHPExcel_Chart_GridLines $minorGridlines

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 —

getChartAxisY()

getChartAxisY() : \PHPExcel_Chart_Axis

Get yAxis

Returns

\PHPExcel_Chart_Axis —

getChartAxisX()

getChartAxisX() : \PHPExcel_Chart_Axis

Get xAxis

Returns

\PHPExcel_Chart_Axis —

getMajorGridlines()

getMajorGridlines() : \PHPExcel_Chart_GridLines

Get Major Gridlines

Returns

\PHPExcel_Chart_GridLines —

getMinorGridlines()

getMinorGridlines() : \PHPExcel_Chart_GridLines

Get Minor Gridlines

Returns

\PHPExcel_Chart_GridLines —

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 —