Forum


Replies: 1   Views: 184
How to customize font size of chart data labels
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 anushkapachpute  · 12-12-2024 - 08:35

Hii!

I am using phpdocx premium version 15. I have created bar charts using addChart method and also added data labels using showValue => 1. Now I want to customize font size of such labels. How can I?

Posted by admin  · 12-12-2024 - 10:53

Hello,

As detailed on the addChart API documentation page (https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP), the current stable version of phpdocx allows setting custom font styles in the following chart contents:

  • general chart properties, title => all licenses
  • horizontalAxis, legend area, verticalAxis => Theme options only available in Premium licenses

The current stable version of phpdocx does not include an option to customize the font styles of data labels. To accomplish this task, a new option will be included in the next stable release.

Regards.