저는 현재 온라인으로 파워 포인트를 만들어야하는 프로젝트에서 일하고 있습니다. 나는 이것을 https://github.com/PHPOffice/PHPPresentation으로 사용하고 있습니다. 차트를 생성하는 것 외에도 거의 모든 것이 완벽하게 작동합니다. 파워 포인트를 열면 수리가 필요하다고합니다. 수리 후 모든 내용이 손실됩니다.파워 포인트 차트 복구가 필요합니다
나는 다른 누구도 같은 문제가 있는지 궁금해하고이 문제를 해결하는 데 도움이 될 수 있습니다.
코드는 내가 노력 :
$oPHPPresentation = new PhpPresentation();
$currentSlide = $oPHPPresentation->createSlide();
$currentSlide->setName('Title of the slide');
$lineChart = new Line();
$seriesData = array('Monday' => 18, 'Tuesday' => 23, 'Wednesday' => 14, 'Thursday' => 12, 'Friday' => 20, 'Saturday' => 8, 'Sunday' => 10);
$series = new Series('example', $seriesData);
$series->setShowValue(false);
$series->setShowPercentage(true); // This does nothing
$series->setDlblNumFormat('0.00%'); // This does nothing
$lineChart->addSeries($series);
$shape = $currentSlide->createChartShape();
$shape->getPlotArea()->setType($lineChart);
$oWriterPPTX = IOFactory::createWriter($oPHPPresentation, 'PowerPoint2007');
$oWriterPPTX->save(__DIR__ . "/sample.pptx");
패키지 : https://github.com/PHPOffice/PHPPresentation
프레임 워크 : Laravel 5.1
PHP 버전 : 7.0
미리 감사드립니다 차트에 대한