Title: Pie charts don't always seem to fit labels to a constrained space · Issue #75 · plotly/plotly.js · GitHub
Open Graph Title: Pie charts don't always seem to fit labels to a constrained space · Issue #75 · plotly/plotly.js
X Title: Pie charts don't always seem to fit labels to a constrained space · Issue #75 · plotly/plotly.js
Description: Maybe it's just me, but I keep ending up with pie chart labels that look like this: http://codepen.io/tlrdstd/pen/QyWybK It happens when I assign a fixed size to the pie chart, either by passing it in the layout hash, or in style attribu...
Open Graph Description: Maybe it's just me, but I keep ending up with pie chart labels that look like this: http://codepen.io/tlrdstd/pen/QyWybK It happens when I assign a fixed size to the pie chart, either by passing it...
X Description: Maybe it's just me, but I keep ending up with pie chart labels that look like this: http://codepen.io/tlrdstd/pen/QyWybK It happens when I assign a fixed size to the pie chart, either by passin...
Opengraph URL: https://github.com/plotly/plotly.js/issues/75
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pie charts don't always seem to fit labels to a constrained space","articleBody":"Maybe it's just me, but I keep ending up with pie chart labels that look like this: http://codepen.io/tlrdstd/pen/QyWybK\n\n\n\nIt happens when I assign a fixed size to the pie chart, either by passing it in the `layout` hash, or in `style` attributes on the div. The pie chart always grows to fit the space, regardless of whether there is room to fit the labels. With a 300x300 square in this example, both the title and the text are cut off. If I increase to a 500x500 square, the title fits, but the text is still cut off because the pie chart grows to match.\n\nConverting the square to a rectangle solves the problem, but that doesn't fit my design space.\n\nI haven't dug into this in the code yet...after trying to solve variations on the same problem in other libraries (flot, d3pie, and uvcharts come to mind), I'm just assuming it ain't easy. d3pie does the best job of plotting labels of anything I've seen, though it too forgets to check the edges of the box.\n","author":{"url":"https://github.com/tlrdstd","@type":"Person","name":"tlrdstd"},"datePublished":"2015-12-04T02:53:04Z","url":"https://github.com/plotly/plotly.js/issues/75"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b8fdecb9-31f2-abf8-1002-65a46c7958fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B750:DA744:14B6C8B:1BD8620:6B013979 |
| html-safe-nonce | 01de887e8ea198fe97a8488a290bcfdbfbf2e6356fe5745109406bda78f2c95d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzUwOkRBNzQ0OjE0QjZDOEI6MUJEODYyMDo2QjAxMzk3OSIsInZpc2l0b3JfaWQiOiIzNjgyMDY0MjI3OTk4OTA4MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98b3da0f2dacd8dde1e17caad6130e93fdeaca02f07871633b6dd112e89b9230 |
| hovercard-subject-tag | issue:120320976 |
| 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/plotly/plotly.js/75/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0dd56c5a94bf63f5c1ceabd05abd20191ea385af4b990555cde9cec55d9bfb69/plotly/plotly.js/issues/75 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0dd56c5a94bf63f5c1ceabd05abd20191ea385af4b990555cde9cec55d9bfb69/plotly/plotly.js/issues/75 |
| og:image:alt | Maybe it's just me, but I keep ending up with pie chart labels that look like this: http://codepen.io/tlrdstd/pen/QyWybK It happens when I assign a fixed size to the pie chart, either by passing it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlrdstd |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width