PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

Set mark position for Line Chart (with solution)

Open pal-software opened this issue 4 years ago • 0 comments

Method setLabelPosition(..) has no effect for lineChart (for PowerPoint output file). So you can`t to change label position from default label position.

Solution: at the file src/PhpPresentationWriter/PowerPoint2007/PptCharts.php at the method protected function writeTypeLine(...) after line $objWriter->startElement('c:dLbls'); add line $this->writeElementWithValAttribute($objWriter, 'c:dLblPos', $series->getLabelPosition());

pal-software avatar Dec 14 '20 14:12 pal-software