Forum


Replies: 5   Views: 3445
Axis labels overlay on top of axis values
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 line_tim  · 24-09-2015 - 13:29

I'm adding a 2D column chart to my document but the axis labels always seem to overlay on top of the values display along on the X and Y axis. I can't see anyway to adjust the position of the labels and adjusting the chart dimensions just makes the actual chart wider. Any help much appreciated! Here is some example code: $chartParameters = array( 'title' => 'My Chart Title', 'data' => $chartData, 'type' => 'colChart', 'color' => '0', 'chartAlign' => 'center', 'sizeX' => '14', 'sizeY' => '10', 'legendPos' => 'r', 'legendOverlay' => '0', 'border' => '0', 'hgrid' => '1', 'vgrid' => '0', 'vaxLabel' => 'Label for V Axis', 'vaxLabelDisplay' => 'rotated', 'haxLabel' => 'Label for X Axis', 'haxLabelDisplay' => 'horizontal', 'groupBar' => 'clustered' // 'showTable' => true ); $docx->addChart($chartParameters);