Forum


Replies: 2   Views: 1957
'legendpos' => 'none' in addchart causes an error
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  · 20-12-2019 - 20:36

Hello,

The Premium package includes the following samples that set legendPos as 'none': sample_2.php and sample_16.php.

It seems your code is seting legendPos as 'none', so no legend tag is created, and you are trying to set a legend style using the legendArea option. You can't apply a legend style as the legend tag doesn't exist, so phpdocx returns a not found DOM exception.

To hide elements in charts please check the show* options available in the addChart method.

Regards.