Forum


Replies: 5   Views: 3673
Replacechartdata only replacing existing 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 tech@hurdman.ca  · 05-02-2015 - 15:03

OK, so as per my e-mail conversation, it is only existing data points that can be replaced, no less, and no more. If the original chart has 50 data points, the replaceChartData must be passed an array with 50 data points. I have solved the problem I was facing, albeit in a slightly imperfect way, but it will do. However, I cannot figure out how to replace the names of the data points. Even passing in an array with named data points, as in addChart, the names are not replaced. I have dealt with this by not displaying names, which will work, but does anybody know how to replace the data point names?