Forum


Replies: 4   Views: 1455
Docxutilities setchartdata - cleanup chart when replacement data has fewer categories than source ch
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  · 17-06-2020 - 06:16

Hello,

replaceChartData (https://www.phpdocx.com/api-documentation/docxutilities/replace-chart-data-Word-document) only replaces existing values in a chart, but it doesn't remove or add values. We have added a task to the dev team to add support.

To add custom charts using any number of values there's no other alternative than using addChart (https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP).

Regards.