Forum


Replies: 2   Views: 217
Color symbol of line chart
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  · 12-06-2024 - 09:12

Hello,

The current stable version of phpdocx doesn't include an option to set custom color symbols. A new option must be added (symbolRgbColors or a similar option name). It's currently being developed and it will be included in the next stable release of phpdocx (there's no release date).

Regarding the PHP error you get, it comes from a not supported theme option when generating combo charts. In this case, please do not create custom color for values, only for series:

$paramsChart = array(
    'data' => $data,
    'type' => 'lineChart',
    'symbol' => 'dot',
    'symbolSize' => 5,
    'smooth' => false,
    'returnChart' => true,
    'color' => 2,
    'theme' => array(
        'serRgbColors' => array('00b546','fa7d0f'),
    ),
);

We have opened a task to the dev team to support setting custom color to individual values when adding a combo chart.

Regards.