René's URL Explorer Experiment


Title: Fixed-width hover labels with `hoverlabel.width` · Issue #3800 · plotly/plotly.js · GitHub

Open Graph Title: Fixed-width hover labels with `hoverlabel.width` · Issue #3800 · plotly/plotly.js

X Title: Fixed-width hover labels with `hoverlabel.width` · Issue #3800 · plotly/plotly.js

Description: So I've set up my graph to have a fixed width for hover labels, and it was a real PITA to get to this now, I'm using the angular library, but basically, I set a manual tbbwidth in createHoverText, changing var tbb = tx.node().getBounding...

Open Graph Description: So I've set up my graph to have a fixed width for hover labels, and it was a real PITA to get to this now, I'm using the angular library, but basically, I set a manual tbbwidth in createHoverText, ...

X Description: So I've set up my graph to have a fixed width for hover labels, and it was a real PITA to get to this now, I'm using the angular library, but basically, I set a manual tbbwidth in createHov...

Opengraph URL: https://github.com/plotly/plotly.js/issues/3800

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fixed-width hover labels with `hoverlabel.width`","articleBody":"So I've set up my graph to have a fixed width for hover labels, and it was a real PITA to get to this now,\r\n\r\n\u003cimg width=\"608\" alt=\"Screen Shot 2019-04-23 at 03 03 40\" src=\"https://user-images.githubusercontent.com/955114/56547283-d6734100-6574-11e9-97aa-26bcce9be17e.png\">\r\n\u003cimg width=\"565\" alt=\"Screen Shot 2019-04-23 at 03 03 47\" src=\"https://user-images.githubusercontent.com/955114/56547284-d6734100-6574-11e9-91fb-0f31f9908b99.png\">\r\n\r\nI'm using the angular library, but *basically*, I set a manual tbbwidth in `createHoverText`, changing\r\n\r\n        var tbb = tx.node().getBoundingClientRect();\r\n        var htx = d.xa._offset + (d.x0 + d.x1) / 2;\r\n        var hty = d.ya._offset + (d.y0 + d.y1) / 2;\r\n        var dx = Math.abs(d.x1 - d.x0);\r\n        var dy = Math.abs(d.y1 - d.y0);\r\n        var txTotalWidth = tbb.width + HOVERARROWSIZE + HOVERTEXTPAD + tx2width;\r\n        var anchorStartOK, anchorEndOK;\r\n\r\n        d.ty0 = outerTop - tbb.top;\r\n        d.bx = tbb.width + 2 * HOVERTEXTPAD;\r\n        d.by = Math.max(tbb.height + 2 * HOVERTEXTPAD, tx2height);\r\n        d.anchor = 'start';\r\n        d.txwidth = tbb.width;\r\n        d.tx2width = tx2width;\r\n        d.offset = 0;\r\n\r\nTo,\r\n\r\n        var tbb = tx.node().getBoundingClientRect();\r\n        var htx = d.xa._offset + (d.x0 + d.x1) / 2;\r\n        var hty = d.ya._offset + (d.y0 + d.y1) / 2;\r\n        var dx = Math.abs(d.x1 - d.x0);\r\n        var dy = Math.abs(d.y1 - d.y0);\r\n        var tbbwidth = 385;\r\n        var txTotalWidth = tbbwidth + HOVERARROWSIZE + HOVERTEXTPAD + tx2width;\r\n        var anchorStartOK, anchorEndOK;\r\n\r\n        d.tbbwidth = tbb.width;\r\n        d.ty0 = outerTop - tbb.top;\r\n        d.bx = tbbwidth + 2 * HOVERTEXTPAD;\r\n        d.by = Math.max(tbb.height + 2 * HOVERTEXTPAD, tx2height);\r\n        d.anchor = 'start';\r\n        d.txwidth = tbbwidth;\r\n        d.tx2width = tx2width;\r\n        d.offset = 0;\r\n\r\nAnd in `alignHoverText` (my local version is 1.45.3),\r\n\r\n        tx.call(svgTextUtils.positionText,\r\n            txx + offsetX, offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD);\r\n\r\nTo,\r\n\r\n        tx.call(svgTextUtils.positionText,\r\n            (txx \u003c 0 ? -(d.bx - d.tbbwidth) : txx) + offsetX, \r\n            offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD);\r\n\r\n---\r\n\r\nI'd love to have this feature myself for graphs like this, and more - and would really appreciate some advice as to what would be the best method to submit a PR.","author":{"url":"https://github.com/seaders","@type":"Person","name":"seaders"},"datePublished":"2019-04-23T02:15:06Z","url":"https://github.com/plotly/plotly.js/issues/3800"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ceea5c91-73b3-503f-6256-df8ffbe82df8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87EA:16EED3:2DA4F1A:3A27BEF:6B01BF0F
html-safe-nonce82045b314f9d334548814ce3e2dbb0496f15a5f3cab858df5374a30442c422e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VBOjE2RUVEMzoyREE0RjFBOjNBMjdCRUY6NkIwMUJGMEYiLCJ2aXNpdG9yX2lkIjoiMzk5NzQ0NjQwOTE2NjExMDQ3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac051fb50c52fe774b3019bce57de833a51e97e90e8229a2b9644c3ec9fbb92c04
hovercard-subject-tagissue:435966381
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/3800/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0686469bd87dbaa47574f8c9f895d2b7be2eabbd46269129c1d72d4741624914/plotly/plotly.js/issues/3800
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0686469bd87dbaa47574f8c9f895d2b7be2eabbd46269129c1d72d4741624914/plotly/plotly.js/issues/3800
og:image:altSo I've set up my graph to have a fixed width for hover labels, and it was a real PITA to get to this now, I'm using the angular library, but basically, I set a manual tbbwidth in createHoverText, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameseaders
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/3800#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F3800
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F3800
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/3800
Reloadhttps://github.com/plotly/plotly.js/issues/3800
Reloadhttps://github.com/plotly/plotly.js/issues/3800
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/3800
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/3800
Fixed-width hover labels with hoverlabel.widthhttps://github.com/plotly/plotly.js/issues/3800#top
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/seaders
seadershttps://github.com/seaders
on Apr 23, 2019https://github.com/plotly/plotly.js/issues/3800#issue-435966381
https://user-images.githubusercontent.com/955114/56547283-d6734100-6574-11e9-97aa-26bcce9be17e.png
https://user-images.githubusercontent.com/955114/56547284-d6734100-6574-11e9-91fb-0f31f9908b99.png
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Apr 24, 2019https://github.com/plotly/plotly.js/issues/3800#issuecomment-486276823
plotly.js/src/components/annotations/attributes.jshttps://github.com/plotly/plotly.js/blob/4529fe92c6a13eb0ebeb4ede38592e67183d8df6/src/components/annotations/attributes.js#L55-L66
4529fe9https://github.com/plotly/plotly.js/commit/4529fe92c6a13eb0ebeb4ede38592e67183d8df6
PR guidelineshttps://github.com/plotly/plotly.js/blob/master/.github/PULL_REQUEST_TEMPLATE.md
#3753https://github.com/plotly/plotly.js/pull/3753
#2342https://github.com/plotly/plotly.js/issues/2342
etpinardhttps://github.com/etpinard
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
on Apr 24, 2019https://github.com/plotly/plotly.js/issues/3800#event-2297482368
etpinardhttps://github.com/etpinard
on Apr 24, 2019https://github.com/plotly/plotly.js/issues/3800#event-2297483683
https://github.com/pdfabbro
pdfabbrohttps://github.com/pdfabbro
on Sep 17, 2020https://github.com/plotly/plotly.js/issues/3800#issuecomment-694351172
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 14, 2024https://github.com/plotly/plotly.js/issues/3800#issuecomment-2167865217
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 14, 2024https://github.com/plotly/plotly.js/issues/3800#event-13159959161
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/3800
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/3800
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.