fix formatting

This commit is contained in:
troosan 2018-12-02 23:54:25 +01:00
parent 31968fa814
commit 5b688d50d8
2 changed files with 23 additions and 19 deletions

View File

@ -111,9 +111,15 @@ class Chart extends AbstractStyle
*/
private $valueAxisTitle;
/**
* The position for major tick marks
* Possible values are 'in', 'out', 'cross', 'none'
*
* @var string
*/
private $majorTickMarkPos = 'none';
/*
/**
* Show labels for axis
*
* @var bool
@ -262,7 +268,7 @@ class Chart extends AbstractStyle
*
* @return bool
*/
public function getShowLegend()
public function isShowLegend()
{
return $this->showLegend;
}
@ -452,8 +458,8 @@ class Chart extends AbstractStyle
}
/**
* set the position for major tick marks
* @param string $position [description]
* Set the position for major tick marks
* @param string $position
*/
public function setMajorTickPosition($position)
{
@ -461,7 +467,7 @@ class Chart extends AbstractStyle
$this->majorTickMarkPos = $this->setEnumVal($position, $enum, $this->majorTickMarkPos);
}
/*
/**
* Show Gridlines for X-Axis
*
* @return bool

View File

@ -130,7 +130,7 @@ class Chart extends AbstractPart
$this->options = $this->types[$type];
$title = $style->getTitle();
$showLegend = $style->getShowLegend();
$showLegend = $style->isShowLegend();
//Chart title
if ($title) {
@ -145,11 +145,9 @@ class Chart extends AbstractPart
<a:defRPr/></a:pPr><a:r><a:rPr/><a:t>' . $title . '</a:t></a:r>
<a:endParaRPr/>
</a:p>');
$xmlWriter->endElement(); // c:rich
$xmlWriter->endElement(); // c:tx
$xmlWriter->endElement(); // c:title
} else {
$xmlWriter->writeElementBlock('c:autoTitleDeleted', 'val', 1);
}