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

Discard negative values from pie chart post-aggregation instead of during summation #6051

Merged
merged 4 commits into from Dec 9, 2021

Conversation

destiny-wu
Copy link
Contributor

@destiny-wu destiny-wu commented Dec 7, 2021

Fixes #5481 by retaining negative values during summation and dropping negative totals afterward. Adds pie_negative_values.json to the test image mocks for demonstration of the changed behavior.

@destiny-wu destiny-wu changed the title Pie chart drops negative values post-aggregation instead of during summation Discard negative values from pie chart post-aggregation instead of during summation Dec 7, 2021
@archmoj archmoj mentioned this pull request Dec 8, 2021
src/traces/pie/calc.js Outdated Show resolved Hide resolved
@archmoj
Copy link
Contributor

archmoj commented Dec 9, 2021

Currently there is a problem in our image test system.
Would you please rename the png and json files to start with letter z?
pie_negative_values > z-pie_negative_values
Thanks!

@archmoj archmoj added this to the v2.8.0 milestone Dec 9, 2021
@archmoj
Copy link
Contributor

archmoj commented Dec 9, 2021

Thanks very much for the PR.
💃

@archmoj archmoj merged commit 87420bf into plotly:master Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Individual negative values discarded in pie chart
2 participants