Class \avadim\FastExcelWriter\Charts\Chart¶
- __construct() – Chart constructor
- make() – Create Chart instance
- addDataSeriesSet() – Add multiple data series to the chart
- addDataSeriesType() – Add data series of specific type (used for combo charts)
- addDataSeriesType2() – Add data series of specific type to the second axis (used for combo charts)
- addDataSeriesValues() – Add data series values to the chart
- getBottomRightCell() – Get the cell address where the bottom right of the chart is fixed
- getBottomRightOffset() – Get the offset position within the Bottom Right cell for the chart
- getBottomRightPosition() – Get the bottom right position of the chart
- getBottomRightXOffset() – Get Bottom Right X-Offset
- getBottomRightYOffset() – Get Bottom Right Y-Offset
- getCategoryAxisTitle() – Get Category Axis Title
- getChartAxisX() – Get X Axis
- getChartAxisY() – Get Y Axis
- getChartAxisY2() – Get Y Axis 2
- getDisplayBlanksAs() – Get Display Blanks As
- getLegend() – Get Chart Legend
- getMajorGridlines() – Get Major Gridlines
- getMinorGridlines() – Get Minor Gridlines
- getName() – Get Chart Name
- getPlotArea() – Get Plot Area
- getPlotChartTypes() – Get the data series type(s) for a chart plot series
- getPlotVisibleOnly() – Get Plot Visible Only
- getTitle() – Get Chart Title
- getTopLeftCell() – Get the cell address where the top left of the chart is fixed
- getTopLeftOffset() – Get the offset position within the Top Left cell for the chart
- getTopLeftPosition() – Get the top left position of the chart
- getTopLeftXOffset() – Get Top Left X-Offset
- getTopLeftYOffset() – Get Top Left Y-Offset
- getValueAxisTitle() – Get Value Axis Title
- getValueAxisTitle2() – Get Y2 Axis Title
- setBottomRightCell() – Set Bottom Right Cell
- setBottomRightOffset() – Set the offset position within the Bottom Right cell for the chart
- setBottomRightXOffset() – Set Bottom Right X-Offset
- setBottomRightYOffset() – Set Bottom Right Y-Offset
- setCategoryAxis() – Set Category Axis Labels and Title
- setCategoryAxisLabels() – Set Category Axis Labels (tick labels)
- setCategoryAxisTitle() – Set Category Axis Title
- setChartColors() – Set Chart Colors
- setChartType() – Set Chart Type
- setDataSeriesNames() – Set Data Series Names
- setDataSeriesTickLabels() – Set Data Series Tick Labels
- setDisplayBlanksAs() – Set Display Blanks As
- setLegend() – Set Chart Legend
- setLegendPosition() – Set Chart Legend Position
- setLegendPositionBottom() – Set Chart Legend Position to Bottom
- setLegendPositionLeft() – Set Chart Legend Position to Left
- setLegendPositionRight() – Set Chart Legend Position to Right
- setLegendPositionTop() – Set Chart Legend Position to Top
- setName() – Set Chart Name
- setPlotArea() – Set Chart Plot Area
- setPlotLayout() – Set Plot Layout
- setPlotShowPercent() – Set Plot Show Percent
- setPlotShowValues() – Set Plot Show Values
- setPlotVisibleOnly() – Set Plot Visible Only
- setPosition() – Set the Bottom Right position of the chart
- setSheet() – Set Sheet
- setTitle() – Set Chart Title
- setTopLeftCell() – Set the Top Left cell position for the chart
- setTopLeftOffset() – Set the offset position within the Top Left cell for the chart
- setTopLeftPosition() – Set the Top Left position for the chart
- setTopLeftXOffset() – Set Top Left X-Offset
- setTopLeftYOffset() – Set Top Left Y-Offset
- setValueAxisTitle() – Set Value Axis Title
- setValueAxisTitle2() – Set Y2 Axis Title
__construct()¶
public function __construct($title, $plotArea, ?Legend $legend = null,
?bool $plotVisibleOnly = true,
?string $displayBlanksAs = '0', $xAxisLabel,
$yAxisLabel, ?Axis $xAxis = null,
?Axis $yAxis = null,
?GridLines $majorGridlines = null,
?GridLines $minorGridlines = null)
Parameters¶
Title|string $titlePlotArea|array $plotAreaLegend|null $legendbool|null $plotVisibleOnlystring|null $displayBlanksAsTitle|string|null $xAxisLabelTitle|string|null $yAxisLabelAxis|null $xAxisAxis|null $yAxisGridLines|null $majorGridlinesGridLines|null $minorGridlines
make()¶
public static function make(string $chartType, $title, $dataSource): Chart
Parameters¶
string $chartTypeTitle|string|null $titleDataSeries|PlotArea|array|null $dataSource
addDataSeriesSet()¶
public function addDataSeriesSet(array $dataSources): Chart
Parameters¶
array $dataSources
addDataSeriesType()¶
public function addDataSeriesType(string $chartType, $dataSource,
?string $dataLabel = null,
?array $options = []): Chart
Parameters¶
string $chartTypeDataSeriesValues|string $dataSourcestring|null $dataLabelarray|null $options
addDataSeriesType2()¶
public function addDataSeriesType2(string $chartType, $dataSource,
?string $dataLabel = null,
?array $options = []): Chart
Parameters¶
string $chartTypeDataSeriesValues|string $dataSourcestring|null $dataLabelarray|null $options
addDataSeriesValues()¶
public function addDataSeriesValues($dataSource, ?string $dataLabel = null,
?array $options = []): Chart
Parameters¶
DataSeriesValues|array|string $dataSourcestring|null $dataLabelarray|null $options
getBottomRightCell()¶
public function getBottomRightCell(): string
Parameters¶
None
getBottomRightOffset()¶
public function getBottomRightOffset(): array
Parameters¶
None
getBottomRightPosition()¶
public function getBottomRightPosition(): array
Parameters¶
None
getBottomRightXOffset()¶
public function getBottomRightXOffset(): int
Parameters¶
None
getBottomRightYOffset()¶
public function getBottomRightYOffset(): int
Parameters¶
None
getCategoryAxisTitle()¶
public function getCategoryAxisTitle(): ?Title
Parameters¶
None
getChartAxisX()¶
public function getChartAxisX(): ?Axis
Parameters¶
None
getChartAxisY()¶
public function getChartAxisY(): ?Axis
Parameters¶
None
getChartAxisY2()¶
public function getChartAxisY2(): ?Axis
Parameters¶
None
getDisplayBlanksAs()¶
public function getDisplayBlanksAs(): string
Parameters¶
None
getLegend()¶
public function getLegend(): ?Legend
Parameters¶
None
getMajorGridlines()¶
public function getMajorGridlines(): ?GridLines
Parameters¶
None
getMinorGridlines()¶
public function getMinorGridlines(): ?GridLines
Parameters¶
None
getName()¶
public function getName(): string
Parameters¶
None
getPlotArea()¶
public function getPlotArea(): PlotArea
Parameters¶
None
getPlotChartTypes()¶
public function getPlotChartTypes(): array
Parameters¶
None
getPlotVisibleOnly()¶
public function getPlotVisibleOnly(): bool
Parameters¶
None
getTitle()¶
public function getTitle(): Title
Parameters¶
None
getTopLeftCell()¶
public function getTopLeftCell(): string
Parameters¶
None
getTopLeftOffset()¶
public function getTopLeftOffset(): array
Parameters¶
None
getTopLeftPosition()¶
public function getTopLeftPosition(): array
Parameters¶
None
getTopLeftXOffset()¶
public function getTopLeftXOffset(): int
Parameters¶
None
getTopLeftYOffset()¶
public function getTopLeftYOffset(): int
Parameters¶
None
getValueAxisTitle()¶
public function getValueAxisTitle(): ?Title
Parameters¶
None
getValueAxisTitle2()¶
public function getValueAxisTitle2(): ?Title
Parameters¶
None
setBottomRightCell()¶
public function setBottomRightCell(string $cell): Chart
Parameters¶
string $cell
setBottomRightOffset()¶
public function setBottomRightOffset(?int $xOffset = null,
?int $yOffset = null): Chart
Parameters¶
int|null $xOffsetint|null $yOffset
setBottomRightXOffset()¶
public function setBottomRightXOffset(int $xOffset): Chart
Parameters¶
int $xOffset
setBottomRightYOffset()¶
public function setBottomRightYOffset(int $yOffset): Chart
Parameters¶
int $yOffset
setCategoryAxis()¶
public function setCategoryAxis($labels, $title): Chart
Parameters¶
DataSeriesValues|array|string $labelsTitle|string|null $title
setCategoryAxisLabels()¶
public function setCategoryAxisLabels($labels): Chart
Parameters¶
DataSeriesValues|array|string $labels
setCategoryAxisTitle()¶
public function setCategoryAxisTitle($title): Chart
Parameters¶
Title|string $title
setChartColors()¶
public function setChartColors(array $colors): Chart
Parameters¶
array $colors
setChartType()¶
public function setChartType(string $chartType): Chart
Parameters¶
string $chartType
setDataSeriesNames()¶
public function setDataSeriesNames($labels): Chart
Parameters¶
DataSeriesValues|array|string $labels
setDataSeriesTickLabels()¶
public function setDataSeriesTickLabels($range): Chart
Parameters¶
DataSeriesValues|array|string $range
setDisplayBlanksAs()¶
public function setDisplayBlanksAs(string $displayBlanksAs = '0'): Chart
Parameters¶
string $displayBlanksAs
setLegend()¶
public function setLegend(avadim\FastExcelWriter\Charts\Legend $legend): Chart
Parameters¶
Legend $legend
setLegendPosition()¶
public function setLegendPosition(string $position): Chart
Parameters¶
string $position
setLegendPositionBottom()¶
public function setLegendPositionBottom(): Chart
Parameters¶
None
setLegendPositionLeft()¶
public function setLegendPositionLeft(): Chart
Parameters¶
None
setLegendPositionRight()¶
public function setLegendPositionRight(): Chart
Parameters¶
None
setLegendPositionTop()¶
public function setLegendPositionTop(): Chart
Parameters¶
None
setName()¶
public function setName(string $name): Chart
Parameters¶
string $name
setPlotArea()¶
public function setPlotArea($plotValues): Chart
Parameters¶
PlotArea|array $plotValues
setPlotLayout()¶
public function setPlotLayout($layout): Chart
Parameters¶
Layout|array|null $layout
setPlotShowPercent()¶
public function setPlotShowPercent(bool $val): Chart
Parameters¶
bool $val
setPlotShowValues()¶
public function setPlotShowValues(bool $val): Chart
Parameters¶
bool $val
setPlotVisibleOnly()¶
public function setPlotVisibleOnly(bool $plotVisibleOnly = true): Chart
Parameters¶
bool $plotVisibleOnly
setPosition()¶
public function setPosition(string $cell, ?int $xOffset = null,
?int $yOffset = null): Chart
Parameters¶
string $cellint|null $xOffsetint|null $yOffset
setSheet()¶
public function setSheet(avadim\FastExcelWriter\Sheet $sheet): Chart
Parameters¶
Sheet $sheet
setTitle()¶
public function setTitle($title): Chart
Parameters¶
Title|string $title
setTopLeftCell()¶
public function setTopLeftCell(string $cell): Chart
Parameters¶
string $cell
setTopLeftOffset()¶
public function setTopLeftOffset(?int $xOffset = null,
?int $yOffset = null): Chart
Parameters¶
integer|null $xOffsetinteger|null $yOffset
setTopLeftPosition()¶
public function setTopLeftPosition(string $cell, ?int $xOffset = null,
?int $yOffset = null): Chart
Parameters¶
string $cellinteger|null $xOffsetinteger|null $yOffset
setTopLeftXOffset()¶
public function setTopLeftXOffset($xOffset): Chart
Parameters¶
int $xOffset
setTopLeftYOffset()¶
public function setTopLeftYOffset($yOffset): Chart
Parameters¶
int $yOffset
setValueAxisTitle()¶
public function setValueAxisTitle($title): Chart
Parameters¶
Title|string $title
setValueAxisTitle2()¶
public function setValueAxisTitle2($title): Chart
Parameters¶
Title|string $title