1

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 Answers1

0

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);
  • Please have a look at [Can I answer my own question?](http://stackoverflow.com/help/self-answer) and come back two days later and check as answered if you have more than 15 reputation (See also: [Accept Your Own Answers](https://stackoverflow.blog/2009/01/06/accept-your-own-answers/). – help-info.de Dec 18 '21 at 18:35