Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We repaired your presentation. Pie Work but not Bar #750

Open
alaglil opened this issue Aug 12, 2023 · 1 comment
Open

We repaired your presentation. Pie Work but not Bar #750

alaglil opened this issue Aug 12, 2023 · 1 comment

Comments

@alaglil
Copy link

alaglil commented Aug 12, 2023

I visualize the rendering online, when I change from Bar to Pie it works well but with Bar an empty page is displayed, at the beginning I have the result with Bar but at certain times it is no longer displayed, it drives me crazy.

$objPHPPresentation = new PhpPresentation();
$barChartHorz = new Bar(); // this work with Pie but not with Bar
$currentSlide = $objPHPPresentation->getActiveSlide();
// Create a shape (chart)

    $shape = $currentSlide->createChartShape();

    $shape->getPlotArea()->setType($barChartHorz);

    $oWriterPPTX = IOFactory::createWriter($objPHPPresentation, 'PowerPoint2007');
    $fileName = 'bars.pptx';
    $file_path = public_path('ppt/' . $fileName);
    $oWriterPPTX->save($file_path);  
@benjaminLedel
Copy link

Try using the Version in the develop branch. The master branch is a bit outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants