Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Additions to PHPExcel_Chart_Layout to allow manual 3D rotations #170

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jocull
Copy link

@jocull jocull commented Apr 26, 2013

Today I made additions that allow manual rotations of a 3D chart, such as a pie chart. These may not be included in exactly the correct places, but they are useful for me as-is.

Using a layout sample like this...

$layoutPlotArea = new PHPExcel_Chart_Layout();
$layoutPlotArea->setManual3dAlign(true);
$layoutPlotArea->setXRotation(50);
$layoutPlotArea->setYRotation(0);
$layoutPlotArea->setPerspective(15);
$plotArea = new PHPExcel_Chart_PlotArea($layoutPlotArea, array($series1));

Results in XML additions of,,,

<c:view3D>
    <c:rotX val="50"/>
    <c:rotY val="0"/>
    <c:rAngAx val="0"/>
    <c:perspective val="15"/>
</c:view3D>

@MarkBaker
Copy link
Member

Thanks, will take a look at this - since I introduced charts as an experimental feature I've been getting more and more demands to expand charting features, so this will be a nice first step

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants