Forum


Replies: 1   Views: 2036
In pie chart any way to show decimal percentages ?
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  · 06-10-2017 - 13:20

I'm having an issue with the pie chart showing percentages(showPercent=1)

Please see sample issue https://photos.app.goo.gl/4JKoIBgcbJkLZJmc2

The percentage shows 0% though the value is 18(because it's very low compared to other values).

Is there a way to display decimal percentages so that it does not round up to 0% giving a completely different meaning ?

 

Posted by admin  · 09-10-2017 - 08:03

Hello,

That's the default behavior of MS Word and phpdocx uses it. As it can't be changed, maybe you could add the values to the pie chart using the showValue option.

Regards.