Forum


Replies: 1   Views: 2563
Using wordml for chart title?
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:50

Hi,

I am trying to customize the text fontsize for chart title.

I tried to use the WordML to achieve this but it does not seem to work. Any idea how to customize the font size of chart title?

$textData = new WordFragment($docx);
$wordML = '<a:r><a:rPr lang="en-IN" sz="1400"/><a:t>'. $group->title .'</a:t></a:r>';
                    $textData->addWordML($wordML);
                    $args[] = array(
                        'data' => $data,
                        'type' => 'barChart',
                        'color' => 3,
                        'title' => $textData,
                        'sizeX' => 17, 'sizeY' => $sizeY,
                        'legendPos' => 'none',
                        'border' => 1,
                        'vgrid' => 0,
                        'hgrid' => 1,
                        'scalingMin' => '0.0',
                        'scalingMax' => $account->ratingMax,
                        'majorUnit' => 1.0,
                        'minorUnit' => 0.0,
                        'showValue' => false,
                        'chartAlign' => 'left',
                        'showTable' => false,
                        'font' => "Arial",
                        'groupBar' => 'clustered'
                    );