Skip to content

Commit 6163037

Browse files
committed
Improved some points
1 parent 59d6a3f commit 6163037

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docs/changes/1.1.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Features
44

55
- Support for axis options - [@mindline](https://github.com/mindline-analytics) GH-676
6-
- axis intersection point (axis crossing) through `setCrossesAt`/ `getCrossesAt`
7-
- reverse axis order through `setIsReversedOrder`/ `isReversedOrder`
6+
- Axis intersection point (axis crossing) through `setCrossesAt`/ `getCrossesAt`
7+
- Reverse axis order through `setIsReversedOrder`/ `isReversedOrder`
88
- PowerPoint2007 Writer
99
- Support for Hyperlink Text Color - [@MartynasJanu](https://github.com/MartynasJanu) & [@Progi1984](https://github.com/Progi1984) GH-682
1010
- PowerPoint2007 Reader

docs/usage/shapes/chart.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ $shape->getPlotArea()->getAxisX()->setMaxBounds(200);
9797

9898
#### Crossing
9999

100-
> **⚠ NOTICE: only available in 'PowerPoint2007' Writer.**
100+
!!! warning
101+
Available only on the PowerPoint2007 Writer
101102

102103
For Axis, `setCrossesAt` can be used to define where it should be crossed by the perpendicular/ horizontal axis.
103104
The property can be defined by one of the three given constants or as an absolute value on the target axis.
104105

105106
``` php
106107
use PhpOffice\PhpPresentation\Shape\Axis;
108+
use PhpOffice\PhpPresentation\Shape\Chart\Type\Bar;
107109

108110
$bar = new Bar();
109111

@@ -132,6 +134,7 @@ To reset this effect, the axis intersection point on the other axis must be set
132134

133135
``` php
134136
use PhpOffice\PhpPresentation\Shape\Axis;
137+
use PhpOffice\PhpPresentation\Shape\Chart\Type\Bar;
135138

136139
$bar = new Bar();
137140

tests/PhpPresentation/Tests/Writer/PowerPoint2007/PptChartsTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,17 @@ public function testIsReversedOrder(): void
339339
$this->assertIsSchemaECMA376Valid();
340340

341341
// reversed order
342-
$this->assertInstanceOf('PhpOffice\PhpPresentation\Shape\Chart\Axis', $oShape->getPlotArea()->getAxisX()->setIsReversedOrder(true));
342+
$this->assertInstanceOf(Axis::class, $oShape->getPlotArea()->getAxisX()->setIsReversedOrder(true));
343343
$this->resetPresentationFile();
344+
344345
$this->assertZipXmlElementExists('ppt/charts/' . $oShape->getIndexedFilename(), $element);
345346
$this->assertZipXmlAttributeEquals('ppt/charts/' . $oShape->getIndexedFilename(), $element, 'val', 'maxMin');
346347
$this->assertIsSchemaECMA376Valid();
347348

348349
// reset reversed order
349-
$this->assertInstanceOf('PhpOffice\PhpPresentation\Shape\Chart\Axis', $oShape->getPlotArea()->getAxisX()->setIsReversedOrder(false));
350+
$this->assertInstanceOf(Axis::class, $oShape->getPlotArea()->getAxisX()->setIsReversedOrder(false));
350351
$this->resetPresentationFile();
352+
351353
$this->assertZipXmlElementExists('ppt/charts/' . $oShape->getIndexedFilename(), $element);
352354
$this->assertZipXmlAttributeEquals('ppt/charts/' . $oShape->getIndexedFilename(), $element, 'val', 'minMax');
353355
$this->assertIsSchemaECMA376Valid();

0 commit comments

Comments
 (0)