Replies: 1   Views: 275
Docxutilities replacechartdata
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 bkidd  · 17-06-2020 - 12:22

For this method, I have the following suggestion:


If the legends or categories arrays are a different size than the source chart, adjust the legends/categories to match the replacement data.  Currently, if the replacement data legends/categories are a different size, the chart is placed in somewhat of a corrupted state.

Exception Only

If the preferred option cannot be implemented, an exception should be thrown when the replacement data legends/categories are a different size than the source chart.  I realize the developer can check this but within the boundary of DocxUtilities, the class should not allow the developer to pass data that places the chart in a corrupted state without throwing an exception or providing some feedback to the developer.

Posted by admin  · 17-06-2020 - 12:23


Thanks for your feedback, we move it to the dev team.