Forum


Replies: 11   Views: 3231
Change data chart from xlsx
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 22-11-2017 - 19:05

Hello,

We are going to check the undefined index. As a workaround please add @ when you invoke replaceChartData to hide the notice:

@$docxx->replaceChartData($source, $target, $data);

Although this isn't a good practice, it will avoid the notice (and other errors that the method may show as well, so please use it carefully and only in this line until a new package is released).

Laravel (as Symfony and other PHP frameworks) throws an exception in the dev environment when a notice is thrown. You can avoid it changing the default configuration, but we are going to check and fix the undefined index notice.

Regards.