Skip to content
New issue

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

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

Already on GitHub? # to your account

dataLabelPosition option for Pie charts #837

Closed
kornarakis opened this issue Aug 31, 2020 · 4 comments
Closed

dataLabelPosition option for Pie charts #837

kornarakis opened this issue Aug 31, 2020 · 4 comments
Milestone

Comments

@kornarakis
Copy link

Category

  • Enhancement

Version

Please specify what version of the library you are using: [ 3.3.1 ]

Please specify what version(s) of PowerPoint you are targeting: [ 360 ]

Expected / Desired Behavior / Question

When creating a Pie to have the dataLabelPosition option available like Powerpoint has, so we can position the labels for example outside the pie with outEnd.

@gitbrent
Copy link
Owner

gitbrent commented Sep 2, 2020

The Chart API docs show this as an option for bar charts, but it should work with pie charts according to what i see in the source code.

if (chartType === CHART_TYPE.PIE) `<c:dLblPos val="${opts.dataLabelPosition || 'inEnd'}"/>`

@veredmly
Copy link

veredmly commented Sep 3, 2020

The 'outEnd' option is not working for pie chart.

@calidatkoch
Copy link

@gitbrent The line you mentioned has no effect. To work properly it should be replaced with:
strXml += "<c:dLblPos val="" + (opts.dataLabelPosition || 'inEnd') + ""/>";

@gitbrent
Copy link
Owner

Fixed via Pull #938

@gitbrent gitbrent added this to the 3.7.0 milestone May 17, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants