Forum


Replies: 4   Views: 169
Custom position to the title in doughnut 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 admin  · 11-12-2024 - 11:20

Hello,

MS Word doesn't allow adding data tables to some chart types (pie, doughnut...). Only specific chart types such as bar or line support data tables.

You can use the legendPos option (https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP) to set the legend position (bottom, top, left, right...). There's no option in phpdocx to move value positions (MS Word supports this by moving manually the values, but it doesn't include a specific option).
If you want to display the data values in the legend of the doughnut chart, we recommend you add them in the legend values (as part of the text string).

Regards.