This class creates a ODF chart
package |
Docxpresso |
---|---|
subpackage |
Charts |
__construct(array $options)
access |
public |
---|---|
array
__toString() : string
access |
public |
---|---|
string
_createStyle(string $styleName, array $options) : void
access |
private |
---|
string
array
_dataBubbleSeries(array $data, array $options = array()) : void
access |
private |
---|
array
array
_dataMultipleSeries(mixed $data, array $options = array()) : void
access |
private |
---|
mixed
a XML string or an array
array
_dataSingleSeries(array $data, array $options = array()) : void
access |
private |
---|
array
array
_generateDataPointStyle(integer $counter, array $style) : void
access |
protected |
---|
integer
array
_generateSeriesStyle(string $seriesName, array $options = array()) : void
access |
protected |
---|
string
array
_generateTransformationMatrix(integer $rotx, integer $roty, integer $rotz) : array
access |
private |
---|
integer
an integer angle between -90 and 90. The default is 11 for all charts but pie and donut that is -60
integer
an integer angle between -45 and 45. The default is 11 for all charts but pie and donut that is 0
integer
an integer angle between -90 and 90. The default is 5 for all charts but pie and donut that is 0 (this is ignored if the rightAngle property is set to true)
array
_generateVRP(integer $perspective) : array
access |
private |
---|
integer
given as a percentage
array
_getChartNode() : string
access |
private |
---|---|
string
_grid(\Docxpresso\Core\Charts\DOMNode $node, array $options) : void
access |
private |
---|
\Docxpresso\Core\Charts\DOMNode
array
_setDefaultAxisProps(string $axis, string $type, array &$options) : void
access |
private |
---|
string
string
array
_setDefaultChartProps(string $type, array &$options) : void
access |
private |
---|
string
array
_setDefaultComponentProps(string $component, string $type, array &$options) : void
access |
private |
---|
string
string
array
_setDefaultGridProps(string $axis, string $gridType, string $type, array &$options) : void
access |
private |
---|
string
string
string
array
axis(\Docxpresso\Core\Charts\(string) $axis, $options = array()) : void
access |
public |
---|
\Docxpresso\Core\Charts\(string)
it may be x, y or z
with the following keys and values
'visible' => (boolean) default value is true
'logarithmic' => (boolean) default value is false
'font-color' => (string) hexadecimal color: #ff0000, ...
'font-family' => (string) Arial, Calibri, ...
'font-size' => (int) given in points
'axis-position' => (mixed) it can be start (default), end or a
numeric value dictating where the perpendicular axis shiould cross
'label-arrangement' => (string) side-by-side, stagger-even or
stagger-odd.
'display-label' => (boolean) default value is true
'axis-label-position' => (string) near-axis (default),
near-axis-other-side, outside-end or outside-start
'reverse-direction' => (boolean) default is false
'text-overlap' => (boolean) default is false. It specifies
whether axis labels may overlap each other
'line-break' => (boolean) default is true. specifies whether
word wrapping is allowed for axis labels
'stroke' => (string) solid (default), dash or none.
'stroke-width' => (string) given in points (default 0.75pt), cm, in.
'stroke-color' => (string) hexadecimal color: #d9d9d9 (default)
'stroke-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke-linejoin' => (string) round (default), bevel, middle,
miter or none
'stroke-linecap' => (string) butt (default), round or square.
'tick-marks-major-inner' => (boolean) default value is false
'tick-marks-minor-inner' => (boolean) default value is false
'tick-marks-major-outer' => (boolean) default value is false
'tick-marks-minor-outer' => (boolean) default value is false
component(string $component = 'wall', $options = array()) : void
access |
public |
---|
string
it can be wall or floor
with the following keys and values
'fill-color' => (string) hexadecimal color: #ffffff (default)
'fill-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke' => (string) solid (default), dash or none.
'stroke-width' => (string) given in points, cm or in.
'stroke-color' => (string) hexadecimal color.
'stroke-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke-linejoin' => (string) round (default), bevel, middle,
miter or none
'stroke-linecap' => (string) butt (default), round or square.
data(mixed $data, array $options = array()) : void
access |
public |
---|
mixed
a XML string or an array
array
getChartType() : string
access |
public |
---|---|
string
getStyleId() : string
access |
public |
---|---|
string
grid(\Docxpresso\Core\Charts\(string) $axis = 'x', \Docxpresso\Core\Charts\(string) $type = 'major', $options = array()) : void
access |
public |
---|
\Docxpresso\Core\Charts\(string)
it may be x, y or z
\Docxpresso\Core\Charts\(string)
it may be major or minor
with the following keys and values
'stroke' => (string) solid (default), dash or none.
'stroke-width' => (string) given in points, cm or in. The defaults
are: 0.75pt for major grids and 0.5pt for minor grids
'stroke-color' => (string) hexadecimal color. For major grids the
default is #d9d9d9 and #f0f0f0 for minor grids
'stroke-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke-linejoin' => (string) round (default), bevel, middle,
miter or none
'stroke-linecap' => (string) butt (default), round or square.
legend( $options = array()) : void
access |
public |
---|
with the following keys and values
'legend-position' => (string) left, right, top or bottom
'color' => (string) hexadecimal value: #333333, ...
'font-family' => (string) Arial, caliobri, ...
'font-size => (string) (string) given in points, cm or in.
'font-weight' => (string) bold or normal.
'font-style' => (string) italic or normal.
'fill-color' => (string) hexadecimal color: #ffffff (default)
'fill-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke' => (string) solid (default), dash or none.
'stroke-width' => (string) given in points, cm or in.
'stroke-color' => (string) hexadecimal color. For major grids the
default is #d9d9d9 and #b3b3b3 for minor grids
'stroke-opacity' => (string) percentage: 100% (default), 80%, ....
'stroke-linejoin' => (string) round (default), bevel, middle,
miter or none
'stroke-linecap' => (string) butt (default), round or square.
'name' => (string) the name used for the series. It only applies to
bubble charts
repairChart4Word(\Docxpresso\Core\Charts\DOMNode $node) : void
access |
public |
---|
\Docxpresso\Core\Charts\DOMNode
rowLetter(integer $j) : string
..)
access |
public |
---|---|
static |
integer
string
setChartType(string $type) : void
access |
public |
---|
string
setColorScheme(mixed $colorScheme) : void
access |
public |
---|
mixed
it can be the name of one of the predefined color schemes: default, classic, blue, red, green or an array of arrays with the following keys and values: 'fill-color' (string) an hexadecimal color #ff0000, #56a845, ... 'opacity' (string) given as a percentage 100%, 80%, 50%, ... 'stroke' (string) none, dash or solid 'stroke-width' (string) given in points, cm, in, ... 'stroke-color' (string) an hexadecimal color #ff0000, #56a845, ...
setStyleId(string $id) : void
access |
public |
---|
string
transform3D( $options) : void
access |
public |
---|
with the following keys and values
'rotate-x' => (int) rotation angle respect the x-axis. The default
value is 11 for all charts but for pie or doonut charts that is -60
'rotate-y' => (int) rotation angle respect the y-axis. The default
value is 25 for all charts but for pie or doonut charts that is 0
'rotate-z' => (int) rotation angle respect the z-axis. The default
value is 5 for all charts but for pie or doonut charts that is 0
'right-angled-axes' => (boolean) default value is true (if true
the rotate-z option is ignored)
'perspective' => (int) given as a percentage (default value
is 20)
chartTypes : array
var | |
---|---|
access |
public |
static |
array
defaultChartProperties : array
var | |
---|---|
access |
public |
static |
array
graphicPropsNS : array
access |
public |
---|---|
static | |
var |
array
symbols : array
var | |
---|---|
access |
public |
static |
array
textPropsNS : array
access |
public |
---|---|
static | |
var |
array
styleXML : string
var | |
---|---|
access |
public |
static |
string
_cameraMatrix : array
var | |
---|---|
access |
private |
array
_chart : \Docxpresso\Core\Charts\DOMDocument
var | |
---|---|
access |
private |
\Docxpresso\Core\Charts\DOMDocument
_chartType : string
var | |
---|---|
access |
private |
string
_class : string
var | |
---|---|
access |
private |
string
_colorScheme : array
var | |
---|---|
access |
private |
array
_customChartProperties : array
var | |
---|---|
access |
private |
array
_distance : string
var | |
---|---|
access |
private |
string
_dom : \Docxpresso\Core\Charts\DOMDocument
var | |
---|---|
access |
private |
\Docxpresso\Core\Charts\DOMDocument
_focalLength : string
var | |
---|---|
access |
private |
string
_rootChartElement : \Docxpresso\Core\Charts\DOMNode
var | |
---|---|
access |
private |
\Docxpresso\Core\Charts\DOMNode
_styleId : string
var | |
---|---|
access |
private |
string
_styles : \Docxpresso\Core\Charts\DOMNode
var | |
---|---|
access |
private |
\Docxpresso\Core\Charts\DOMNode
_threeD : boolean
var | |
---|---|
access |
private |
boolean
_vpn : array
var | |
---|---|
access |
private |
array
_vrp : array
var | |
---|---|
access |
private |
array
_vup : array
var | |
---|---|
access |
private |
static |
array
_xpath : \Docxpresso\Core\Charts\DOMXPath
var | |
---|---|
access |
private |
static |
\Docxpresso\Core\Charts\DOMXPath