Forum


Replies: 7   Views: 1747
Docxprem - custom colors for charts
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  · 01-07-2020 - 10:15

Hi guys,

I have tried to follow the docs for adding custom colors to charts but they are a bit incomplete: https://www.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP

This part here:

    'theme' => array(
        'serRgbColors' => array(null, 'FF00FF', '00FFFF'),
        'valueRgbColors' => array(
            array('FF0000'),
            null,
            array(null, null, '00FF00'),
        ),
    ),

I am trying to set the colors for a pie chart - 2 different colors for 2 series - how would i do that?

Regards