Forum


Replies: 2   Views: 2908
Is it possible to change names od categories on chart - function replace_data?
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  · 20-12-2016 - 07:23

Hello,

The next version of phpdocx will add support to change titles, categories, series... (the current version only allows to replace existing data values) using the replaceChartData method; but not to add new data points.

Just as a workaround, if you use placeholders (or unique strings) as categories and other values, this method:

http://www.phpdocx.com/api-documentation/docxutilities/raw-search-and-replace-docx

allows to replace strings in any XML of the DOCX.

Regards.