Documentation

Chart extends AbstractPart
in package

Word2007 chart part writer: word/charts/chartx.xml.

Tags
since
0.12.0
see
http://www.datypic.com/sc/ooxml/e-draw-chart_chartSpace.html

Table of Contents

Properties

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer.
$element  : Chart
Chart element.
$options  : array<string|int, mixed>
Chart options.
$types  : array<string|int, mixed>
Type definition.

Methods

getParentWriter()  : AbstractWriter
Get parent writer.
setElement()  : void
Set chart element.
setParentWriter()  : void
Set parent writer.
write()  : string
Write part.
getXmlWriter()  : XMLWriter
Get XML Writer.
writeText()  : bool
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
writeAxis()  : void
Write axis.
writeAxisTitle()  : void
writeChart()  : void
Write chart.
writePlotArea()  : void
Write plot area.
writeSeries()  : void
Write series.
writeSeriesItem()  : void
Write series items.
writeShape()  : void
Write shape.

Properties

$dateFormat

protected string $dateFormat = 'Y-m-d\TH:i:sP'

Date format

$options

Chart options.

private array<string|int, mixed> $options = []

$types

Type definition.

private array<string|int, mixed> $types = ['pie' => ['type' => 'pie', 'colors' => 1], 'doughnut' => ['type' => 'doughnut', 'colors' => 1, 'hole' => 75, 'no3d' => true], 'bar' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'bar', 'grouping' => 'clustered'], 'stacked_bar' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'bar', 'grouping' => 'stacked'], 'percent_stacked_bar' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'bar', 'grouping' => 'percentStacked'], 'column' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'col', 'grouping' => 'clustered'], 'stacked_column' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'col', 'grouping' => 'stacked'], 'percent_stacked_column' => ['type' => 'bar', 'colors' => 0, 'axes' => true, 'bar' => 'col', 'grouping' => 'percentStacked'], 'line' => ['type' => 'line', 'colors' => 0, 'axes' => true], 'area' => ['type' => 'area', 'colors' => 0, 'axes' => true], 'radar' => ['type' => 'radar', 'colors' => 0, 'axes' => true, 'radar' => 'standard', 'no3d' => true], 'scatter' => ['type' => 'scatter', 'colors' => 0, 'axes' => true, 'scatter' => 'marker', 'no3d' => true]]

Methods

setElement()

Set chart element.

public setElement(Chart $element) : void
Parameters
$element : Chart

write()

Write part.

public write() : string
Return values
string

writeText()

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().

protected writeText(string $content) : bool
Parameters
$content : string

The text string to write

Return values
bool

Returns true on success or false on failure

writeAxisTitle()

private writeAxisTitle(XMLWriter $xmlWriter, mixed $title) : void
Parameters
$xmlWriter : XMLWriter
$title : mixed

writePlotArea()

Write plot area.

private writePlotArea(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Tags
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_PlotArea.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_PieChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_DoughnutChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_BarChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_LineChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_AreaChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_RadarChart.html
see
http://www.datypic.com/sc/ooxml/t-draw-chart_CT_ScatterChart.html

writeSeries()

Write series.

private writeSeries(XMLWriter $xmlWriter[, bool $scatter = false ]) : void
Parameters
$xmlWriter : XMLWriter
$scatter : bool = false

writeSeriesItem()

Write series items.

private writeSeriesItem(XMLWriter $xmlWriter, string $type, array<string|int, mixed> $values) : void
Parameters
$xmlWriter : XMLWriter
$type : string
$values : array<string|int, mixed>

        
On this page

Search results