How to change Chart background color in PhpPresentation?

196 Views Asked by At

I know how to change background color in slide, but i can't find how to change background color in chart.

Default Chart

I use a default code from PhpPresentation

Any one can help?

1

There are 1 best solutions below

1
On

finally i found the answer!

just use this code :

$shape->getFill()->setFillType(Fill::FILL_GRADIENT_LINEAR)
      ->setRotation(90)
      ->setStartColor(new Color('FF000000'))
      ->setEndColor(new Color('FFB1B1B1'));

Below this code

$shape->setFill($oFill);