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

Can't format value of Pie chart pptx (0.7.0) #212

Closed
Napryc opened this issue Mar 22, 2016 · 4 comments
Closed

Can't format value of Pie chart pptx (0.7.0) #212

Napryc opened this issue Mar 22, 2016 · 4 comments
Assignees
Milestone

Comments

@Napryc
Copy link

Napryc commented Mar 22, 2016

Hi,

formatting values in pie chart is not working. Doing a modification in the function writeTypePie of PptCharts.php file solved it for me.

After line 1383
$objWriter->startElement('c:dLbls');
I've added the following code:

if ($series->hasDlblNumFormat()) {
   $objWriter->startElement('c:numFmt');
   $objWriter->writeAttribute('formatCode', $series->getDlblNumFormat());
   $objWriter->writeAttribute('sourceLinked', '0');
   $objWriter->endElement();
}

@Napryc Napryc changed the title Can't format value of Pie chart ptx (0.7.0) Can't format value of Pie chart pptx (0.7.0) Mar 27, 2016
@Progi1984 Progi1984 modified the milestone: 0.8.0 May 21, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Oct 27, 2016
@Progi1984
Copy link
Member

@Napryc I just modified your fix. Could you test the PR #287 ?

@Progi1984 Progi1984 self-assigned this Oct 27, 2016
@Progi1984
Copy link
Member

@Napryc Some feedback, please.

1 similar comment
@Progi1984
Copy link
Member

@Napryc Some feedback, please.

Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Jan 14, 2017
Progi1984 added a commit that referenced this issue Jan 15, 2017
#212 : Fixed the format value in Pie Chart
@Progi1984
Copy link
Member

Fixed in develop branch

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