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

[BUG] Data labels with smaller values are spaced closer to the pie charts #1368

Open
1 of 4 tasks
JLee4 opened this issue Jan 30, 2025 · 0 comments
Open
1 of 4 tasks

Comments

@JLee4
Copy link

JLee4 commented Jan 30, 2025

We appreciate your feedback - to help the team understand your needs please complete the following template to ensure we have the details to help.

Issue Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [3.12.0]
  • Please specify what version(s) of PowerPoint you are targeting: [16.93.2]
  • Please specify what web browser you are using.................: [Google Chrome]

Desired Behavior

On pie charts, when the "outEnd" i.e. "Outside End" is selected on dataLabelPosition when using the addChart method, data labels should have even spacing against the pie chart and not overlap with each other.

Observed Behavior

Pie chart with "outside end" positioned data labels have data labels with smaller values spaced closer to the pie chart and tend to overlap with each other. Closer inspection of the label position in the Powerpoint describes the data label positions as "Center"

Image

Steps to Reproduce

Code to reproduce:

slide.addChart(presentation.ChartType.pie, [{
    name: "Project Status",
    labels: ["Red", "Yellow", "Green", "Complete", "Cancelled", "Unknown"],
    values: [50, 25, 10, 10, 4, 1],
}], {
    dataLabelPosition: "outEnd",
    dataLabelFormatCode: "0.00%",
    // other chart attributes
}
@JLee4 JLee4 changed the title [BUG|FEATURE] [BUG] Data labels with smaller values are spaced closer to the pie charts Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant