Forum


Replies: 4   Views: 2853
How to create a colchart with grouped values
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  · 06-04-2017 - 06:24

Hello,

The option groupBar allows to group the data in bar and columns chart. Please check this option in the API documentation:

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

and the included example addChart/sample_3.php

About customize major and minor units, it's supported in bar bar and line charts through majorUnit and minorUnit parameters (and also scalingMax and scalingMin).

To customize charts using parameters or styles not supported in the API method

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

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.