Forum


Replies: 1   Views: 2315
Different colors for each bar/groups in a colchart?
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  · 26-05-2017 - 13:19

Hi,

Suppose I have data for 6 groups of bars in a colChart(clustered).

Is there a way by which we can have shades of the same color for each group but each other group should have shades of a different color.

So for example, first group and its bars will have shades of Teal color, second group bars will have shades of orange, third group bars will have shades of yellow and so on? In short we are looking at customizing the colors of the bars/group of bars in case of clustered colGraphs. Anything you can suggest in phpdocx?

Posted by admin  · 29-05-2017 - 06:26

Hello,

UPDATE: phpdocx Premium licenses include support to apply custom colors and other options to the charts.

The API page of addChart explains the supported options:

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

The current version of this method supports the color option to set chart colors, this is through MS Word scheme colors.

Regards.