setOffsetX() public method

Set OffsetX (as a fraction of the chart)
public setOffsetX ( float | integer $value ) : PhpOffice\PhpPresentation\Shape\Chart\Title
$value float | integer
return PhpOffice\PhpPresentation\Shape\Chart\Title
Beispiel #1
0
 public function testOffsetX()
 {
     $object = new PlotArea();
     $value = rand(0, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetX());
     $this->assertEquals(0, $object->getOffsetX());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetX($value));
     $this->assertEquals($value, $object->getOffsetX());
 }