Title: Allow option to display absolute values for pie chart · Issue #19338 · matplotlib/matplotlib · GitHub
Open Graph Title: Allow option to display absolute values for pie chart · Issue #19338 · matplotlib/matplotlib
X Title: Allow option to display absolute values for pie chart · Issue #19338 · matplotlib/matplotlib
Description: Problem I would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via autopct. Hacky solutions like https://stackoverflow.com/a/48299798/3779655 or https://...
Open Graph Description: Problem I would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via autopct. Hacky solutions like https://stackove...
X Description: Problem I would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via autopct. Hacky solutions like https://stackove...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19338
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow option to display absolute values for pie chart","articleBody":"### Problem\r\n\r\nI would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via `autopct`. Hacky solutions like https://stackoverflow.com/a/48299798/3779655 or https://stackoverflow.com/a/41089685/3779655 exist to retrieve the absolute values based from the fractional ones. It would be better to support it out of the box.\r\n\r\n### Proposed Solution\r\n\r\nAdd option `wedgelabels=None|'percent'|'absolute'|list of strings` together with `wedgelabelfmt` replacing `autopct`.\r\n\r\nFor migration, initialize `wedgelabelfmt=autopct` for `wedgelabels='percent'` and overwrite if `wedgelabelfmt` is set.\r\n","author":{"url":"https://github.com/darkdragon-001","@type":"Person","name":"darkdragon-001"},"datePublished":"2021-01-22T09:34:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/19338/matplotlib/issues/19338"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:089ef636-c681-33ae-5ff2-8c060e60ada0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E91A:183DA9:104C6C6:1644002:6A520D5B |
| html-safe-nonce | e3701848080bec890a844a87e7f607d4f389bdeebdb448a067df81c22beca125 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTFBOjE4M0RBOToxMDRDNkM2OjE2NDQwMDI6NkE1MjBENUIiLCJ2aXNpdG9yX2lkIjoiNDAyODQ2NzQ5MzM0OTc1NjI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 81b789659cffef917d42cd9d23dde431da3a73930452e05f8605238917fed9ff |
| hovercard-subject-tag | issue:791849014 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/19338/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c930c190db529cb81dd91172fb15633a07a694fb593bf7b5b1d0e7a15a58d633/matplotlib/matplotlib/issues/19338 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c930c190db529cb81dd91172fb15633a07a694fb593bf7b5b1d0e7a15a58d633/matplotlib/matplotlib/issues/19338 |
| og:image:alt | Problem I would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via autopct. Hacky solutions like https://stackove... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darkdragon-001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width