Skip to content

Commit 52b2175

Browse files
committed
small bugs in element chart
1 parent 90fef2c commit 52b2175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PhpWord/Style/Chart.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function setDataLabelOptions($values = array())
331331
$this->dataLabelOptions[$option] = $this->setBoolVal($values[$option], $this->dataLabelOptions[$option]);
332332
}
333333
}
334+
return $this;
334335
}
335336

336337
/*
@@ -378,7 +379,7 @@ public function getCategoryLabelPosition()
378379
*/
379380
public function setCategoryLabelPosition($labelPosition)
380381
{
381-
$enum = array('nextTo', 'low', 'high');
382+
$enum = array('none', 'nextTo', 'low', 'high');
382383
$this->categoryLabelPosition = $this->setEnumVal($labelPosition, $enum, $this->categoryLabelPosition);
383384

384385
return $this;

0 commit comments

Comments
 (0)