Skip to content

DrawingRenderer : Datalabels Rounding Percent #2522

Description

@OssianEPPlus

If a datalabel has "ShowPercent == true"
Occasionally when exporting to SVG from a Pie Chart we may go over "100%" as we do not check the total resulting values causing e.g. 7.5% to be displayed as 8% while Excel rounds it to 7% likely because it has the smallest residual.

We should check the total sum to ensure it does not go over 100%. See test: "HtmlExportWithPieWithDatalabels" test for an example

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions