René's URL Explorer Experiment


Title: Make layout height & width understand viewport and percentage sizes · Issue #106 · plotly/plotly.js · GitHub

Open Graph Title: Make layout height & width understand viewport and percentage sizes · Issue #106 · plotly/plotly.js

X Title: Make layout height & width understand viewport and percentage sizes · Issue #106 · plotly/plotly.js

Description: Hi, how can I set the width of the svg chart according to viewport width? I tried using width: '80vw' in layout, but plotly doesn't seem to parse the vw units. Appreciate any help! const layout = { hovermode: 'closest', autosize: true, /...

Open Graph Description: Hi, how can I set the width of the svg chart according to viewport width? I tried using width: '80vw' in layout, but plotly doesn't seem to parse the vw units. Appreciate any help! const layout = {...

X Description: Hi, how can I set the width of the svg chart according to viewport width? I tried using width: '80vw' in layout, but plotly doesn't seem to parse the vw units. Appreciate any help! cons...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make layout height & width understand viewport and percentage sizes","articleBody":"Hi, how can I set the width of the svg chart according to viewport width? I tried using `width: '80vw'` in layout, but plotly doesn't seem to parse the `vw` units. Appreciate any help!\n\n```\n      const layout = {\n        hovermode: 'closest',\n        autosize: true,\n        // width: 1000,\n        // height: 600,\n        margin: {\n          l: 50,\n          r: 20,\n          b: 50,\n          t: 50,\n          pad: 10\n        },\n        yaxis: {\n          rangemode: 'tozero'\n        }\n      }\n```\n","author":{"url":"https://github.com/caalberts","@type":"Person","name":"caalberts"},"datePublished":"2015-12-12T08:51:15Z","url":"https://github.com/plotly/plotly.js/issues/106"}

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:d584ad4f-a808-26eb-5d4b-4cf860d8f5f9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA14C:EA09B:1EBF0B8:28B5233:6B0170A6
html-safe-nonce30143ee3e897dbf36088d3dffb50d83dd8d9f8f6aaf742f35a52abfc9c311183
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTRDOkVBMDlCOjFFQkYwQjg6MjhCNTIzMzo2QjAxNzBBNiIsInZpc2l0b3JfaWQiOiI5MTE2NTMyMzI2Mjc1MzEzODMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0130dba91719212bfe84b38af767eda6fdf785a4bdf16ffda5d64bcd30ec4bbb
hovercard-subject-tagissue:121842967
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/106/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7d2a5a1a35539485da4135773fee7077abf7f898fffeb46ef18192b2b7954def/plotly/plotly.js/issues/106
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7d2a5a1a35539485da4135773fee7077abf7f898fffeb46ef18192b2b7954def/plotly/plotly.js/issues/106
og:image:altHi, how can I set the width of the svg chart according to viewport width? I tried using width: '80vw' in layout, but plotly doesn't seem to parse the vw units. Appreciate any help! const layout = {...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecaalberts
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/106#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F106
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%2F106
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/106
Reloadhttps://github.com/plotly/plotly.js/issues/106
Reloadhttps://github.com/plotly/plotly.js/issues/106
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/106
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/106
Make layout height & width understand viewport and percentage sizeshttps://github.com/plotly/plotly.js/issues/106#top
communitycommunity contributionhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22community%22
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/caalberts
caalbertshttps://github.com/caalberts
on Dec 12, 2015https://github.com/plotly/plotly.js/issues/106#issue-121842967
Nexthttps://github.com/plotly/plotly.js/issues/106?timeline_page=1
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Dec 12, 2015https://github.com/plotly/plotly.js/issues/106#issuecomment-164175814
https://plot.ly/javascript/responsive-fluid-layout/https://plot.ly/javascript/responsive-fluid-layout/
etpinardhttps://github.com/etpinard
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
on Dec 12, 2015https://github.com/plotly/plotly.js/issues/106#event-490164839
etpinardhttps://github.com/etpinard
on Dec 12, 2015https://github.com/plotly/plotly.js/issues/106#event-490165048
etpinardhttps://github.com/etpinard
status: discussion neededhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22status%3A%20discussion%20needed%22
on Apr 7, 2016https://github.com/plotly/plotly.js/issues/106#event-618585149
https://github.com/amirmog
amirmoghttps://github.com/amirmog
on Aug 16, 2016https://github.com/plotly/plotly.js/issues/106#issuecomment-240219407
https://plot.ly/javascript/responsive-fluid-layout/https://plot.ly/javascript/responsive-fluid-layout/
etpinardhttps://github.com/etpinard
communitycommunity contributionhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22community%22
status: discussion neededhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22status%3A%20discussion%20needed%22
on Aug 17, 2016https://github.com/plotly/plotly.js/issues/106#event-758729803
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Aug 17, 2016https://github.com/plotly/plotly.js/issues/106#issuecomment-240463924
@amirmoghttps://github.com/amirmog
#635https://github.com/plotly/plotly.js/pull/635
https://github.com/fresheneesz
fresheneeszhttps://github.com/fresheneesz
on Oct 3, 2016https://github.com/plotly/plotly.js/issues/106#issuecomment-251029355
https://github.com/nzjrs
nzjrshttps://github.com/nzjrs
on Jun 12, 2017https://github.com/plotly/plotly.js/issues/106#issuecomment-307750547
https://github.com/antoinerg
antoinerghttps://github.com/antoinerg
on Aug 31, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-417713243
@chriddyphttps://github.com/chriddyp
https://codepen.io/antoinerg/full/NLboJwhttps://codepen.io/antoinerg/full/NLboJw
https://github.com/pdfabbro
pdfabbrohttps://github.com/pdfabbro
on Sep 13, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-421008432
https://github.com/antoinerg
antoinerghttps://github.com/antoinerg
on Sep 13, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-421032866
@pdfabbrohttps://github.com/pdfabbro
https://codepen.io/antoinerg/full/NLboJwhttps://codepen.io/antoinerg/full/NLboJw
https://codepen.io/antoinerg/pen/JaZEOQhttps://codepen.io/antoinerg/pen/JaZEOQ
https://github.com/pdfabbro
pdfabbrohttps://github.com/pdfabbro
on Sep 13, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-421036021
https://community.plot.ly/t/plot-sizing-problems/1620/13https://community.plot.ly/t/plot-sizing-problems/1620/13
https://github.com/pdfabbro
pdfabbrohttps://github.com/pdfabbro
on Sep 13, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-421036880
https://plot.ly/javascript/reference/https://plot.ly/javascript/reference/
https://plot.ly/javascript/configuration-options/https://plot.ly/javascript/configuration-options/
https://github.com/antoinerg
antoinerghttps://github.com/antoinerg
on Dec 11, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-446059145
@chriddyphttps://github.com/chriddyp
https://github.com/chriddyp
chriddyphttps://github.com/chriddyp
on Dec 11, 2018https://github.com/plotly/plotly.js/issues/106#issuecomment-446060138
https://community.plot.ly/t/cant-seem-to-change-default-height-on-graph/6742/14?u=chriddyphttps://community.plot.ly/t/cant-seem-to-change-default-height-on-graph/6742/14?u=chriddyp
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Apr 9, 2019https://github.com/plotly/plotly.js/issues/106#issuecomment-481400492
@antoinerghttps://github.com/antoinerg
etpinardhttps://github.com/etpinard
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 9, 2019https://github.com/plotly/plotly.js/issues/106#event-2263956946
https://github.com/lujcheng
lujchenghttps://github.com/lujcheng
on Dec 12, 2019https://github.com/plotly/plotly.js/issues/106#issuecomment-564803345
https://plot.ly/javascript/responsive-fluid-layout/https://plot.ly/javascript/responsive-fluid-layout/
https://github.com/antoinerg
antoinerghttps://github.com/antoinerg
on Dec 16, 2019https://github.com/plotly/plotly.js/issues/106#issuecomment-566299917
@renkinjutsuhttps://github.com/renkinjutsu
https://github.com/tdpetrou
tdpetrouhttps://github.com/tdpetrou
on Apr 22, 2020https://github.com/plotly/plotly.js/issues/106#issuecomment-617891369
https://github.com/leo-smi
leo-smihttps://github.com/leo-smi
on Nov 6, 2020https://github.com/plotly/plotly.js/issues/106#issuecomment-723183009
https://github.com/AjManoj
AjManojhttps://github.com/AjManoj
on Aug 15, 2021https://github.com/plotly/plotly.js/issues/106#issuecomment-898982021
https://github.com/aiqc
aiqchttps://github.com/aiqc
on Apr 27, 2022https://github.com/plotly/plotly.js/issues/106#issuecomment-1111338151
https://github.com/JeremyBesson
JeremyBessonhttps://github.com/JeremyBesson
on Dec 5, 2022https://github.com/plotly/plotly.js/issues/106#issuecomment-1337540151
@tdpetrouhttps://github.com/tdpetrou
https://github.com/pocupine
pocupinehttps://github.com/pocupine
on Oct 3, 2023https://github.com/plotly/plotly.js/issues/106#issuecomment-1745793573
https://github.com/pocupine
pocupinehttps://github.com/pocupine
on Oct 3, 2023https://github.com/plotly/plotly.js/issues/106#issuecomment-1745797984
https://github.com/alemkhodadadi
alemkhodadadihttps://github.com/alemkhodadadi
on Sep 20, 2024https://github.com/plotly/plotly.js/issues/106#issuecomment-2363007369
https://github.com/kiplabat
kiplabathttps://github.com/kiplabat
on Feb 26, 2025https://github.com/plotly/plotly.js/issues/106#issuecomment-2684882540
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/106
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/106
communitycommunity contributionhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22community%22
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.