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.
Hi, I have a chart that has four data points, 2012, 2013, 2014, and 2015. However, the live table may or may start in any year, and go for any number of years, anywhere from 1 to 100. However, when I try to use the ReplaceChartData method, it seems to only replace the data points that exist on the X axis. Is there any way to put all of the data in? If I manually edit the data, then I can put all of it in.
Hello,
The included example changes the values of an existing chart, adding values and contents.
Please send to contact[at]phpdocx.com a script we can run to check your issue.
Regards.
I have sent a script that I am using to figure out how to use it. It is closely based on sample_1.php for replaceChartData.
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?
Is there any update on this? It would be very helpful to be able to update the x-axis labels (A.K.A. the data point names), and I am not aware of any changes. Anybody know if it is possible to do this yet?
Hello,
There's no updates about this method.
If you're interested in a custom development please write to contact[at]phpdocx.com.
Regards.