ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Chart\Chart Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Chart\Chart:

Public Member Functions

 __construct ($name, ?Title $title=null, ?Legend $legend=null, ?PlotArea $plotArea=null, $plotVisibleOnly=true, $displayBlanksAs=DataSeries::EMPTY_AS_GAP, ?Title $xAxisLabel=null, ?Title $yAxisLabel=null, ?Axis $xAxis=null, ?Axis $yAxis=null, ?GridLines $majorGridlines=null, ?GridLines $minorGridlines=null)
 Create a new Chart. More...
 
 getName ()
 Get Name. More...
 
 getWorksheet ()
 Get Worksheet. More...
 
 setWorksheet (?Worksheet $pValue=null)
 Set Worksheet. More...
 
 getTitle ()
 Get Title. More...
 
 setTitle (Title $title)
 Set Title. More...
 
 getLegend ()
 Get Legend. More...
 
 setLegend (Legend $legend)
 Set Legend. More...
 
 getXAxisLabel ()
 Get X-Axis Label. More...
 
 setXAxisLabel (Title $label)
 Set X-Axis Label. More...
 
 getYAxisLabel ()
 Get Y-Axis Label. More...
 
 setYAxisLabel (Title $label)
 Set Y-Axis Label. More...
 
 getPlotArea ()
 Get Plot Area. More...
 
 getPlotVisibleOnly ()
 Get Plot Visible Only. More...
 
 setPlotVisibleOnly ($plotVisibleOnly)
 Set Plot Visible Only. More...
 
 getDisplayBlanksAs ()
 Get Display Blanks as. More...
 
 setDisplayBlanksAs ($displayBlanksAs)
 Set Display Blanks as. More...
 
 getChartAxisY ()
 Get yAxis. More...
 
 getChartAxisX ()
 Get xAxis. More...
 
 getMajorGridlines ()
 Get Major Gridlines. More...
 
 getMinorGridlines ()
 Get Minor Gridlines. More...
 
 setTopLeftPosition ($cell, $xOffset=null, $yOffset=null)
 Set the Top Left position for the chart. More...
 
 getTopLeftPosition ()
 Get the top left position of the chart. More...
 
 getTopLeftCell ()
 Get the cell address where the top left of the chart is fixed. More...
 
 setTopLeftCell ($cell)
 Set the Top Left cell position for the chart. More...
 
 setTopLeftOffset ($xOffset, $yOffset)
 Set the offset position within the Top Left cell for the chart. More...
 
 getTopLeftOffset ()
 Get the offset position within the Top Left cell for the chart. More...
 
 setTopLeftXOffset ($xOffset)
 
 getTopLeftXOffset ()
 
 setTopLeftYOffset ($yOffset)
 
 getTopLeftYOffset ()
 
 setBottomRightPosition ($cell, $xOffset=null, $yOffset=null)
 Set the Bottom Right position of the chart. More...
 
 getBottomRightPosition ()
 Get the bottom right position of the chart. More...
 
 setBottomRightCell ($cell)
 
 getBottomRightCell ()
 Get the cell address where the bottom right of the chart is fixed. More...
 
 setBottomRightOffset ($xOffset, $yOffset)
 Set the offset position within the Bottom Right cell for the chart. More...
 
 getBottomRightOffset ()
 Get the offset position within the Bottom Right cell for the chart. More...
 
 setBottomRightXOffset ($xOffset)
 
 getBottomRightXOffset ()
 
 setBottomRightYOffset ($yOffset)
 
 getBottomRightYOffset ()
 
 refresh ()
 
 render ($outputDestination=null)
 Render the chart to given file (or stream). More...
 

Private Attributes

 $name = ''
 
 $worksheet
 
 $title
 
 $legend
 
 $xAxisLabel
 
 $yAxisLabel
 
 $plotArea
 
 $plotVisibleOnly = true
 
 $displayBlanksAs = DataSeries::EMPTY_AS_GAP
 
 $yAxis
 
 $xAxis
 
 $majorGridlines
 
 $minorGridlines
 
 $topLeftCellRef = 'A1'
 
 $topLeftXOffset = 0
 
 $topLeftYOffset = 0
 
 $bottomRightCellRef = 'A1'
 
 $bottomRightXOffset = 10
 
 $bottomRightYOffset = 10
 

Detailed Description

Definition at line 8 of file Chart.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Chart\Chart::__construct (   $name,
?Title  $title = null,
?Legend  $legend = null,
?PlotArea  $plotArea = null,
  $plotVisibleOnly = true,
  $displayBlanksAs = DataSeries::EMPTY_AS_GAP,
?Title  $xAxisLabel = null,
?Title  $yAxisLabel = null,
?Axis  $xAxis = null,
?Axis  $yAxis = null,
?GridLines  $majorGridlines = null,
?GridLines  $minorGridlines = null 
)

Create a new Chart.

Parameters
mixed$name
mixed$plotVisibleOnly
string$displayBlanksAs

Definition at line 150 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$displayBlanksAs, PhpOffice\PhpSpreadsheet\Chart\Chart\$legend, PhpOffice\PhpSpreadsheet\Chart\Chart\$majorGridlines, PhpOffice\PhpSpreadsheet\Chart\Chart\$minorGridlines, PhpOffice\PhpSpreadsheet\Chart\Chart\$name, PhpOffice\PhpSpreadsheet\Chart\Chart\$plotArea, PhpOffice\PhpSpreadsheet\Chart\Chart\$plotVisibleOnly, PhpOffice\PhpSpreadsheet\Chart\Chart\$title, PhpOffice\PhpSpreadsheet\Chart\Chart\$xAxis, PhpOffice\PhpSpreadsheet\Chart\Chart\$xAxisLabel, PhpOffice\PhpSpreadsheet\Chart\Chart\$yAxis, and PhpOffice\PhpSpreadsheet\Chart\Chart\$yAxisLabel.

151  {
152  $this->name = $name;
153  $this->title = $title;
154  $this->legend = $legend;
155  $this->xAxisLabel = $xAxisLabel;
156  $this->yAxisLabel = $yAxisLabel;
157  $this->plotArea = $plotArea;
158  $this->plotVisibleOnly = $plotVisibleOnly;
159  $this->displayBlanksAs = $displayBlanksAs;
160  $this->xAxis = $xAxis;
161  $this->yAxis = $yAxis;
162  $this->majorGridlines = $majorGridlines;
163  $this->minorGridlines = $minorGridlines;
164  }

Member Function Documentation

◆ getBottomRightCell()

PhpOffice\PhpSpreadsheet\Chart\Chart::getBottomRightCell ( )

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

Returns
string

Definition at line 568 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightCellRef.

569  {
571  }

◆ getBottomRightOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getBottomRightOffset ( )

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

Returns
int[]

Definition at line 599 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightXOffset, and PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightYOffset.

600  {
601  return [
604  ];
605  }

◆ getBottomRightPosition()

PhpOffice\PhpSpreadsheet\Chart\Chart::getBottomRightPosition ( )

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

Definition at line 547 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightCellRef, PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightXOffset, and PhpOffice\PhpSpreadsheet\Chart\Chart\$bottomRightYOffset.

548  {
549  return [
550  'cell' => $this->bottomRightCellRef,
551  'xOffset' => $this->bottomRightXOffset,
552  'yOffset' => $this->bottomRightYOffset,
553  ];
554  }

◆ getBottomRightXOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getBottomRightXOffset ( )

◆ getBottomRightYOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getBottomRightYOffset ( )

◆ getChartAxisX()

PhpOffice\PhpSpreadsheet\Chart\Chart::getChartAxisX ( )

Get xAxis.

Returns
Axis

Definition at line 365 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$xAxis.

366  {
367  if ($this->xAxis !== null) {
368  return $this->xAxis;
369  }
370 
371  return new Axis();
372  }

◆ getChartAxisY()

PhpOffice\PhpSpreadsheet\Chart\Chart::getChartAxisY ( )

Get yAxis.

Returns
Axis

Definition at line 351 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$yAxis.

352  {
353  if ($this->yAxis !== null) {
354  return $this->yAxis;
355  }
356 
357  return new Axis();
358  }

◆ getDisplayBlanksAs()

PhpOffice\PhpSpreadsheet\Chart\Chart::getDisplayBlanksAs ( )

Get Display Blanks as.

Returns
string

Definition at line 327 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$displayBlanksAs.

328  {
329  return $this->displayBlanksAs;
330  }

◆ getLegend()

PhpOffice\PhpSpreadsheet\Chart\Chart::getLegend ( )

Get Legend.

Returns
Legend

Definition at line 227 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$legend.

228  {
229  return $this->legend;
230  }

◆ getMajorGridlines()

PhpOffice\PhpSpreadsheet\Chart\Chart::getMajorGridlines ( )

Get Major Gridlines.

Returns
GridLines

Definition at line 379 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$majorGridlines.

380  {
381  if ($this->majorGridlines !== null) {
382  return $this->majorGridlines;
383  }
384 
385  return new GridLines();
386  }

◆ getMinorGridlines()

PhpOffice\PhpSpreadsheet\Chart\Chart::getMinorGridlines ( )

Get Minor Gridlines.

Returns
GridLines

Definition at line 393 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$minorGridlines.

394  {
395  if ($this->minorGridlines !== null) {
396  return $this->minorGridlines;
397  }
398 
399  return new GridLines();
400  }

◆ getName()

PhpOffice\PhpSpreadsheet\Chart\Chart::getName ( )

Get Name.

Returns
string

Definition at line 171 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$name.

172  {
173  return $this->name;
174  }

◆ getPlotArea()

PhpOffice\PhpSpreadsheet\Chart\Chart::getPlotArea ( )

Get Plot Area.

Returns
PlotArea

Definition at line 293 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$plotArea.

294  {
295  return $this->plotArea;
296  }

◆ getPlotVisibleOnly()

PhpOffice\PhpSpreadsheet\Chart\Chart::getPlotVisibleOnly ( )

Get Plot Visible Only.

Returns
bool

Definition at line 303 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$plotVisibleOnly.

304  {
305  return $this->plotVisibleOnly;
306  }

◆ getTitle()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTitle ( )

Get Title.

Returns
Title

Definition at line 205 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$title.

206  {
207  return $this->title;
208  }

◆ getTopLeftCell()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTopLeftCell ( )

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

Returns
string

Definition at line 443 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftCellRef.

444  {
445  return $this->topLeftCellRef;
446  }

◆ getTopLeftOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTopLeftOffset ( )

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

Returns
int[]

Definition at line 488 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftXOffset, and PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftYOffset.

489  {
490  return [
491  'X' => $this->topLeftXOffset,
492  'Y' => $this->topLeftYOffset,
493  ];
494  }

◆ getTopLeftPosition()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTopLeftPosition ( )

Get the top left position of the chart.

Returns
array{cell: string, xOffset: int, yOffset: int} an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell

Definition at line 429 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftCellRef, PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftXOffset, and PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftYOffset.

430  {
431  return [
432  'cell' => $this->topLeftCellRef,
433  'xOffset' => $this->topLeftXOffset,
434  'yOffset' => $this->topLeftYOffset,
435  ];
436  }

◆ getTopLeftXOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTopLeftXOffset ( )

Definition at line 503 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftXOffset.

504  {
505  return $this->topLeftXOffset;
506  }

◆ getTopLeftYOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::getTopLeftYOffset ( )

Definition at line 515 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$topLeftYOffset.

516  {
517  return $this->topLeftYOffset;
518  }

◆ getWorksheet()

PhpOffice\PhpSpreadsheet\Chart\Chart::getWorksheet ( )

Get Worksheet.

Returns
Worksheet

Definition at line 181 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$worksheet.

182  {
183  return $this->worksheet;
184  }

◆ getXAxisLabel()

PhpOffice\PhpSpreadsheet\Chart\Chart::getXAxisLabel ( )

Get X-Axis Label.

Returns
Title

Definition at line 249 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$xAxisLabel.

250  {
251  return $this->xAxisLabel;
252  }

◆ getYAxisLabel()

PhpOffice\PhpSpreadsheet\Chart\Chart::getYAxisLabel ( )

Get Y-Axis Label.

Returns
Title

Definition at line 271 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$yAxisLabel.

272  {
273  return $this->yAxisLabel;
274  }

◆ refresh()

PhpOffice\PhpSpreadsheet\Chart\Chart::refresh ( )

Definition at line 631 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\render().

631  : void
632  {
633  if ($this->worksheet !== null) {
634  $this->plotArea->refresh($this->worksheet);
635  }
636  }
+ Here is the caller graph for this function:

◆ render()

PhpOffice\PhpSpreadsheet\Chart\Chart::render (   $outputDestination = null)

Render the chart to given file (or stream).

Parameters
string$outputDestinationName of the file render to
Returns
bool true on success

Definition at line 645 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Settings\getChartRenderer(), and PhpOffice\PhpSpreadsheet\Chart\Chart\refresh().

646  {
647  if ($outputDestination == 'php://output') {
648  $outputDestination = null;
649  }
650 
651  $libraryName = Settings::getChartRenderer();
652  if ($libraryName === null) {
653  return false;
654  }
655 
656  // Ensure that data series values are up-to-date before we render
657  $this->refresh();
658 
659  $renderer = new $libraryName($this);
660 
661  return $renderer->render($outputDestination);
662  }
static getChartRenderer()
Return the Chart Rendering Library that PhpSpreadsheet is currently configured to use...
Definition: Settings.php:92
+ Here is the call graph for this function:

◆ setBottomRightCell()

PhpOffice\PhpSpreadsheet\Chart\Chart::setBottomRightCell (   $cell)

Definition at line 556 of file Chart.php.

557  {
558  $this->bottomRightCellRef = $cell;
559 
560  return $this;
561  }

◆ setBottomRightOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setBottomRightOffset (   $xOffset,
  $yOffset 
)

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

Parameters
int$xOffset
int$yOffset
Returns
$this

Definition at line 581 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightXOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightYOffset().

582  {
583  if ($xOffset !== null) {
584  $this->setBottomRightXOffset($xOffset);
585  }
586 
587  if ($yOffset !== null) {
588  $this->setBottomRightYOffset($yOffset);
589  }
590 
591  return $this;
592  }
+ Here is the call graph for this function:

◆ setBottomRightPosition()

PhpOffice\PhpSpreadsheet\Chart\Chart::setBottomRightPosition (   $cell,
  $xOffset = null,
  $yOffset = null 
)

Set the Bottom Right position of the chart.

Parameters
string$cell
int$xOffset
int$yOffset
Returns
$this

Definition at line 529 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightXOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightYOffset().

530  {
531  $this->bottomRightCellRef = $cell;
532  if ($xOffset !== null) {
533  $this->setBottomRightXOffset($xOffset);
534  }
535  if ($yOffset !== null) {
536  $this->setBottomRightYOffset($yOffset);
537  }
538 
539  return $this;
540  }
+ Here is the call graph for this function:

◆ setBottomRightXOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setBottomRightXOffset (   $xOffset)

Definition at line 607 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightPosition().

608  {
609  $this->bottomRightXOffset = $xOffset;
610 
611  return $this;
612  }
+ Here is the caller graph for this function:

◆ setBottomRightYOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setBottomRightYOffset (   $yOffset)

Definition at line 619 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setBottomRightPosition().

620  {
621  $this->bottomRightYOffset = $yOffset;
622 
623  return $this;
624  }
+ Here is the caller graph for this function:

◆ setDisplayBlanksAs()

PhpOffice\PhpSpreadsheet\Chart\Chart::setDisplayBlanksAs (   $displayBlanksAs)

Set Display Blanks as.

Parameters
string$displayBlanksAs
Returns
$this

Definition at line 339 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$displayBlanksAs.

340  {
341  $this->displayBlanksAs = $displayBlanksAs;
342 
343  return $this;
344  }

◆ setLegend()

PhpOffice\PhpSpreadsheet\Chart\Chart::setLegend ( Legend  $legend)

Set Legend.

Returns
$this

Definition at line 237 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$legend.

238  {
239  $this->legend = $legend;
240 
241  return $this;
242  }

◆ setPlotVisibleOnly()

PhpOffice\PhpSpreadsheet\Chart\Chart::setPlotVisibleOnly (   $plotVisibleOnly)

Set Plot Visible Only.

Parameters
bool$plotVisibleOnly
Returns
$this

Definition at line 315 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$plotVisibleOnly.

316  {
317  $this->plotVisibleOnly = $plotVisibleOnly;
318 
319  return $this;
320  }

◆ setTitle()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTitle ( Title  $title)

Set Title.

Returns
$this

Definition at line 215 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\$title.

216  {
217  $this->title = $title;
218 
219  return $this;
220  }

◆ setTopLeftCell()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTopLeftCell (   $cell)

Set the Top Left cell position for the chart.

Parameters
string$cell
Returns
$this

Definition at line 455 of file Chart.php.

456  {
457  $this->topLeftCellRef = $cell;
458 
459  return $this;
460  }

◆ setTopLeftOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTopLeftOffset (   $xOffset,
  $yOffset 
)

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

Parameters
int$xOffset
int$yOffset
Returns
$this

Definition at line 470 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftXOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftYOffset().

471  {
472  if ($xOffset !== null) {
473  $this->setTopLeftXOffset($xOffset);
474  }
475 
476  if ($yOffset !== null) {
477  $this->setTopLeftYOffset($yOffset);
478  }
479 
480  return $this;
481  }
+ Here is the call graph for this function:

◆ setTopLeftPosition()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTopLeftPosition (   $cell,
  $xOffset = null,
  $yOffset = null 
)

Set the Top Left position for the chart.

Parameters
string$cell
int$xOffset
int$yOffset
Returns
$this

Definition at line 411 of file Chart.php.

References PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftXOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftYOffset().

412  {
413  $this->topLeftCellRef = $cell;
414  if ($xOffset !== null) {
415  $this->setTopLeftXOffset($xOffset);
416  }
417  if ($yOffset !== null) {
418  $this->setTopLeftYOffset($yOffset);
419  }
420 
421  return $this;
422  }
+ Here is the call graph for this function:

◆ setTopLeftXOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTopLeftXOffset (   $xOffset)

Definition at line 496 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftPosition().

497  {
498  $this->topLeftXOffset = $xOffset;
499 
500  return $this;
501  }
+ Here is the caller graph for this function:

◆ setTopLeftYOffset()

PhpOffice\PhpSpreadsheet\Chart\Chart::setTopLeftYOffset (   $yOffset)

Definition at line 508 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftOffset(), and PhpOffice\PhpSpreadsheet\Chart\Chart\setTopLeftPosition().

509  {
510  $this->topLeftYOffset = $yOffset;
511 
512  return $this;
513  }
+ Here is the caller graph for this function:

◆ setWorksheet()

PhpOffice\PhpSpreadsheet\Chart\Chart::setWorksheet ( ?Worksheet  $pValue = null)

Set Worksheet.

Parameters
Worksheet$pValue
Returns
$this

Definition at line 193 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\addChart().

194  {
195  $this->worksheet = $pValue;
196 
197  return $this;
198  }
+ Here is the caller graph for this function:

◆ setXAxisLabel()

PhpOffice\PhpSpreadsheet\Chart\Chart::setXAxisLabel ( Title  $label)

Set X-Axis Label.

Returns
$this

Definition at line 259 of file Chart.php.

260  {
261  $this->xAxisLabel = $label;
262 
263  return $this;
264  }

◆ setYAxisLabel()

PhpOffice\PhpSpreadsheet\Chart\Chart::setYAxisLabel ( Title  $label)

Set Y-Axis Label.

Returns
$this

Definition at line 281 of file Chart.php.

282  {
283  $this->yAxisLabel = $label;
284 
285  return $this;
286  }

Field Documentation

◆ $bottomRightCellRef

PhpOffice\PhpSpreadsheet\Chart\Chart::$bottomRightCellRef = 'A1'
private

◆ $bottomRightXOffset

◆ $bottomRightYOffset

◆ $displayBlanksAs

◆ $legend

PhpOffice\PhpSpreadsheet\Chart\Chart::$legend
private

◆ $majorGridlines

PhpOffice\PhpSpreadsheet\Chart\Chart::$majorGridlines
private

◆ $minorGridlines

PhpOffice\PhpSpreadsheet\Chart\Chart::$minorGridlines
private

◆ $name

PhpOffice\PhpSpreadsheet\Chart\Chart::$name = ''
private

◆ $plotArea

PhpOffice\PhpSpreadsheet\Chart\Chart::$plotArea
private

◆ $plotVisibleOnly

PhpOffice\PhpSpreadsheet\Chart\Chart::$plotVisibleOnly = true
private

◆ $title

PhpOffice\PhpSpreadsheet\Chart\Chart::$title
private

◆ $topLeftCellRef

PhpOffice\PhpSpreadsheet\Chart\Chart::$topLeftCellRef = 'A1'
private

◆ $topLeftXOffset

PhpOffice\PhpSpreadsheet\Chart\Chart::$topLeftXOffset = 0
private

◆ $topLeftYOffset

PhpOffice\PhpSpreadsheet\Chart\Chart::$topLeftYOffset = 0
private

◆ $worksheet

PhpOffice\PhpSpreadsheet\Chart\Chart::$worksheet
private

Definition at line 22 of file Chart.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Chart\getWorksheet().

◆ $xAxis

PhpOffice\PhpSpreadsheet\Chart\Chart::$xAxis
private

◆ $xAxisLabel

PhpOffice\PhpSpreadsheet\Chart\Chart::$xAxisLabel
private

◆ $yAxis

PhpOffice\PhpSpreadsheet\Chart\Chart::$yAxis
private

◆ $yAxisLabel

PhpOffice\PhpSpreadsheet\Chart\Chart::$yAxisLabel
private

The documentation for this class was generated from the following file: