Forum


Replies: 7   Views: 215
Serdatalabels - how to use?
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 256bytes  · 18-05-2024 - 11:45

Hello phpDocx Team,

i want to show Number-Values next to the LineChart i created. However i am unable to get that running. Currently i am using

'showValue'  => true,

but i can not format the numbers with

'formatCode' => '#,##0.00'

I still get numbers like 1.73456 and not 1.73 like expected.

Can you provide a working example for serDataLabels, as i think this might be used for further finetuning the visualisation of numbers in the diagram .

unfortunatly theres no sample in the sourcecode provided and i am unable tio guess the array structure.

'serDataLabels' (array): data labels options (bar, bubble, column, line ofPie, pie and scatter charts)
*          'formatCode' (array)
*          'position (array): center, insideEnd, insideBase, outsideEnd
*          'showCategory' (array): 0, 1
*          'showLegendKey' (array): 0, 1
*          'showPercent' (array): 0, 1
*          'showSeries' (array): 0, 1
*          'showValue' (array): 0, 1

Looking forward to that answer and thank you in advance!!