Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scatter chart with numerical X values not working well #3

Closed
tstrader opened this issue Aug 9, 2012 · 5 comments
Closed

Scatter chart with numerical X values not working well #3

tstrader opened this issue Aug 9, 2012 · 5 comments

Comments

@tstrader
Copy link

tstrader commented Aug 9, 2012

The following code 'works' but the resulting chart crashes Powerpoint quite frequently.
The .pptx does open and the chart does appear, but the x-axis has a strange format and Powerpoint itself becomes very slow when this chart is present.
Is this a known issue? Is there a way to fix it?

See code below.

$currentSlide = createTemplatedSlide($objPHPPowerPoint); // local function

$seriesData = array(
67520 => 4.7461,
162240 => 11.4258,
326080 => 15.6445,
356160 => 25.1367,
406720 => 27.9492,
416960 => 29.3555,
477760 => 33.5742
);

$lineChart = new PHPPowerPoint_Shape_Chart_Type_Scatter();
$series = new PHPPowerPoint_Shape_Chart_Series('Series Name', $seriesData);
$lineChart->addSeries($series);

$shape = $currentSlide->createChartShape();
$shape->setName('TheChartName')
->setResizeProportional(false)
->setHeight(550)
->setWidth(700)
->setOffsetX(120)
->setOffsetY(80);
$shape->getPlotArea()->setType($lineChart);
@Progi1984
Copy link
Member

Relative to this commit : 3052064

@Progi1984 Progi1984 added this to the 0.1.1 milestone Mar 7, 2014
ivanlanin added a commit to ivanlanin/PHPPowerPoint that referenced this issue Apr 19, 2014
@Progi1984
Copy link
Member

Hi @tstrader, I just test your Scatter code in Sample 07.
And it has no problem for displaying it.

image

Have you got same problems with page4 on the Sample 07 ?

@Progi1984
Copy link
Member

@tstrader Some news ?

@Progi1984 Progi1984 removed this from the 0.2.0 milestone Jul 21, 2014
@tstrader
Copy link
Author

haven't looked at this in a while, i will assume the problem is probably
resolved by now. thanks for following up.

Tom Strader
President
Silverleaf Investment Solutions LLC
408.219.5657
thomas.strader@gmail.com

On Mon, Jul 21, 2014 at 4:53 AM, Progi1984 notifications@github.com wrote:

@tstrader https://github.com/tstrader Some news ?


Reply to this email directly or view it on GitHub
#3 (comment)
.

@Progi1984
Copy link
Member

Perfect. I close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants