$styleName
$styleName : string
Style name
Chart style
$categoryLabelPosition : string
A string that tells the writer where to write chart labels or to skip "nextTo" - sets labels next to the axis (bar graphs on the left) (default) "low" - labels on the left side of the graph "high" - labels on the right side of the graph
getChildStyleValue(\PhpOffice\PhpWord\Style\AbstractStyle $substyleObject, string $substyleProperty) : mixed
Return style value of child style object, e.g. `left` from `Indentation` child style of `Paragraph`
\PhpOffice\PhpWord\Style\AbstractStyle | $substyleObject | |
string | $substyleProperty |
setStyleValue(string $key, string $value) : self
Set style value template method
Some child classes have their own specific overrides. Backward compability check for versions < 0.10.0 which use underscore prefix for their private properties. Check if the set method is exists. Throws an exception?
string | $key | |
string | $value |
None found |
None found |
None found |
None found |
setHeight(integer $value = null) : self
Set height
integer | $value |
None found |
None found |
None found |
None found |
setColors(array $value = array())
Set the colors to use in a chart.
array | $value | a list of colors to use in the chart |
None found |
None found |
setShowAxisLabels(boolean $value = true) : self
Set show Gridlines for Y-Axis
boolean | $value |
None found |
getDataLabelOptions() : array
get the list of options for data labels
None found |
setDataLabelOptions(array $values = array())
Set values for data label options.
This will only change values for options defined in $this->dataLabelOptions, and cannot create new ones.
array | $values | [description] |
None found |
None found |
setShowGridY(boolean $value = true) : self
Set show Gridlines for Y-Axis
boolean | $value |
None found |
getCategoryLabelPosition() : string
Get the categoryLabelPosition setting
None found |
setCategoryLabelPosition(mixed $labelPosition) : self
Set the categoryLabelPosition setting "none" - skips writing labels "nextTo" - sets labels next to the (bar graphs on the left) "low" - labels on the left side of the graph "high" - labels on the right side of the graph
mixed | $labelPosition |
None found |
getValueLabelPosition() : string
Get the valueAxisLabelPosition setting
None found |
setValueLabelPosition(mixed $labelPosition)
Set the valueLabelPosition setting "none" - skips writing labels "nextTo" - sets labels next to the value "low" - sets labels are below the graph "high" - sets labels above the graph
mixed | $labelPosition |
None found |
None found |
setCategoryAxisTitle(string $axisTitle)
Set the title that appears on the category side of the chart
string | $axisTitle |
None found |
None found |
setValueAxisTitle(string $axisTitle)
Set the title that appears on the value side of the chart
string | $axisTitle |
None found |
None found |
setMajorTickPosition(string $position)
set the position for major tick marks
string | $position | [description] |
None found |
None found |
setShowGridX(boolean $value = true) : self
Set show Gridlines for X-Axis
boolean | $value |
None found |
setNonEmptyVal(string $value, string $default) : string
Set default for null and empty value
string | $value | (was: mixed) |
string | $default | (was: mixed) |
(was: mixed)
None found |
setBoolVal(boolean $value, boolean $default) : boolean
Set bool value
boolean | $value | |
boolean | $default |
None found |
setNumericVal(mixed $value, integer|float|null $default = null) : integer|float|null
Set numeric value
mixed | $value | |
integer|float|null | $default |
None found |
setIntVal(integer|null $value, integer|null $default = null) : integer|null
Set integer value: Convert string that contains only numeric into integer
integer|null | $value | |
integer|null | $default |
None found |
setFloatVal(mixed $value, float|null $default = null) : float|null
Set float value: Convert string that contains only numeric into float
mixed | $value | |
float|null | $default |
None found |
setEnumVal(mixed $value = null, array $enum = array(), mixed $default = null) : mixed
Set enum value
mixed | $value | |
array | $enum | |
mixed | $default |
None found |
setObjectVal(mixed $value, string $styleName, $style) : mixed
Set object value
mixed | $value | |
string | $styleName | |
$style |
None found |
setPairedVal( $property, $pairProperty, boolean $value) : self
Set $property value and set $pairProperty = false when $value = true
$property | ||
$pairProperty | ||
boolean | $value |
None found |