Forum


Replies: 1   Views: 744
Selectively show datavalues in chart
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 dev@ram  · 11-04-2017 - 20:03

I am using showValue => 1 in chart. 

This displays data labels for all bars in a colChart. Is there a way to selectively show it for some bars while hide it for others?

Posted by admin  · 12-04-2017 - 07:28

Hello,

We recommend you to check the API page of the method:

https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP

If you don't find an option to accomplish what you need in the available options, then that customization is not supported in the current version of phpdocx.

To customize charts using parameters or styles not supported in the API method we recommend to use the replaceChartData method available in Advanced and Premium licenses:

https://www.phpdocx.com/api-documentation/docxutilities/replace-chart-data-Word-document

with the MultiMerge class:

https://www.phpdocx.com/api-documentation/docxutilities/replace-chart-data-Word-document

Regards.