Skip to content

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

Open
@JLee4

Description

@JLee4

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions