fix formatting
This commit is contained in:
parent
31968fa814
commit
5b688d50d8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -130,10 +130,10 @@ class Chart extends AbstractPart
|
|||
$this->options = $this->types[$type];
|
||||
|
||||
$title = $style->getTitle();
|
||||
$showLegend = $style->getShowLegend();
|
||||
$showLegend = $style->isShowLegend();
|
||||
|
||||
//Chart title
|
||||
if($title){
|
||||
if ($title) {
|
||||
$xmlWriter->startElement('c:title');
|
||||
$xmlWriter->startElement('c:tx');
|
||||
$xmlWriter->startElement('c:rich');
|
||||
|
|
@ -142,20 +142,18 @@ class Chart extends AbstractPart
|
|||
<a:lstStyle/>
|
||||
<a:p>
|
||||
<a:pPr>
|
||||
<a:defRPr/></a:pPr><a:r><a:rPr/><a:t>'.$title.'</a:t></a:r>
|
||||
<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{
|
||||
} else {
|
||||
$xmlWriter->writeElementBlock('c:autoTitleDeleted', 'val', 1);
|
||||
}
|
||||
|
||||
//Chart legend
|
||||
if($showLegend){
|
||||
if ($showLegend) {
|
||||
$xmlWriter->writeRaw('<c:legend><c:legendPos val="r"/></c:legend>');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue