update changelog and doc

This commit is contained in:
troosan 2018-03-21 22:19:56 +01:00
parent c08f2718af
commit ade497d9d7
4 changed files with 19 additions and 2 deletions

View File

@ -19,6 +19,7 @@ v0.15.0 (?? ??? 2018)
- Added support for Floating Table Positioning (tblpPr) @anrikun #639
- Added support for Image text wrapping distance @troosan #1310
- Added parsing of CSS line-height and text-indent in HTML reader @troosan #1316
- Added the ability to enable gridlines and axislabels on charts @FrankMeyer #576
### Fixed
- Fix reading of docx default style - @troosan #1238

View File

@ -4,7 +4,7 @@ This is:
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpword)
# Expected Behavior
### Expected Behavior
Please describe the behavior you are expecting.

View File

@ -448,7 +448,9 @@ Charts can be added using
$categories = array('A', 'B', 'C', 'D', 'E');
$series = array(1, 3, 2, 5, 4);
$chart = $section->addChart('line', $categories, $series);
$chart = $section->addChart('line', $categories, $series, $style);
For available styling options see :ref:`chart-style`.
check out the Sample_32_Chart.php for more options and styling.

View File

@ -178,3 +178,17 @@ Available NumberingLevel style options:
- ``suffix``. Content between numbering symbol and paragraph text tab\|space\|nothing.
- ``tabPos``. See paragraph style.
- ``text``. Numbering level text e.g. %1 for nonbullet or bullet character.
.. _chart-style:
Chart
-----
Available Chart style options:
- ``width``. Width (in EMU).
- ``height``. Height (in EMU).
- ``3d``. Is 3D; applies to pie, bar, line, area, *true* or *false*.
- ``showAxisLabels``. Show labels for axis, *true* or *false*.
- ``gridX``. Show Gridlines for X-Axis, *true* or *false*.
- ``gridY``. Show Gridlines for Y-Axis, *true* or *false*.