Documentation

Chart extends AbstractPart

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

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer
$element  : Chart
Chart element
$options  : array<string|int, mixed>
Chart options
$types  : array<string|int, mixed>
Type definition
getParentWriter()  : AbstractWriter
Get parent writer
setElement()  : mixed
Set chart element.
setParentWriter()  : mixed
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()  : mixed
Write axis
writeAxisTitle()  : mixed
writeChart()  : mixed
Write chart
writePlotArea()  : mixed
Write plot area.
writeSeries()  : mixed
Write series.
writeSeriesItem()  : mixed
Write series items.
writeShape()  : mixed
Write shape

Properties

$dateFormat

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

$options

Chart options

private array<string|int, mixed> $options = array()

$types

Type definition

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

Methods

setElement()

Set chart element.

public setElement(Chart $element) : mixed
Parameters
$element : Chart
Return values
mixed

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) : mixed
Parameters
$xmlWriter : XMLWriter
$title : mixed
Return values
mixed

writePlotArea()

Write plot area.

private writePlotArea(XMLWriter $xmlWriter) : mixed
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
Return values
mixed

writeSeries()

Write series.

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

writeSeriesItem()

Write series items.

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

Search results