René's URL Explorer Experiment


Title: rangeslider template bug (non-attribute inserted into layout instead of fullLayout) · Issue #6310 · plotly/plotly.js · GitHub

Open Graph Title: rangeslider template bug (non-attribute inserted into layout instead of fullLayout) · Issue #6310 · plotly/plotly.js

X Title: rangeslider template bug (non-attribute inserted into layout instead of fullLayout) · Issue #6310 · plotly/plotly.js

Description: When you add a rangeslider, its yaxis container gets _template: null inserted into the input (layout) object. This isn't an attribute, so it should only be inserted in the fullLayout object, not the layout object. https://codepen.io/alex...

Open Graph Description: When you add a rangeslider, its yaxis container gets _template: null inserted into the input (layout) object. This isn't an attribute, so it should only be inserted in the fullLayout object, not th...

X Description: When you add a rangeslider, its yaxis container gets _template: null inserted into the input (layout) object. This isn't an attribute, so it should only be inserted in the fullLayout object, no...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rangeslider template bug (non-attribute inserted into layout instead of fullLayout)","articleBody":"When you add a rangeslider, its `yaxis` container gets `_template: null` inserted into the input (`layout`) object. This isn't an attribute, so it should only be inserted in the `fullLayout` object, not the `layout` object.\r\n\r\nhttps://codepen.io/alexcjohnson/pen/vYjOvgJ\r\n\r\nThis doesn't cause problems directly in plotly.js, but it should be fixed here because it can cause problems in Dash if you reload a figure into Python after displaying it on the page, for example:\r\n\r\n```py\r\nfrom dash import Dash, dcc, html, callback, Input, Output, State\r\nimport random\r\nimport datetime\r\nimport plotly.graph_objects as go\r\n\r\napp = Dash(__name__)\r\n\r\napp.layout = html.Div([\r\n    html.Div(style={'display': 'flex'}, children=[\r\n        dcc.Graph(\r\n            id='graph-ph',\r\n             figure={\r\n                 'data': [\r\n                     {'x':  [],\r\n                      'y': [0, random.random()],\r\n                      'mode':'lines+markers',\r\n                      }],\r\n                 'layout': {\r\n                     'title': 'pH (pH)'\r\n                 }},\r\n             ),\r\n]),\r\n    dcc.Interval(\r\n        id='interval-graph-update',\r\n        interval=3000,\r\n        max_intervals=3),\r\n])\r\n\r\n@callback(\r\n    Output('graph-ph', 'figure'),\r\n    Input('interval-graph-update', 'n_intervals'),\r\n    State('graph-ph', 'figure')\r\n    )\r\ndef update_extend_traces_traceselect(n_intervals, fig_raw):\r\n    x_new = datetime.datetime.now()\r\n    y_new = random.random()\r\n\r\n    fig_raw['data'][0]['x'] = fig_raw['data'][0]['x'] + [x_new]\r\n    fig_raw['data'][0]['y'] = fig_raw['data'][0]['y'] + [y_new]\r\n\r\n    fig = go.Figure(fig_raw)\r\n    fig.update_xaxes(rangeslider={'visible': True})\r\n\r\n    return fig\r\n\r\nif __name__ == '__main__':\r\n    app.run_server(debug=True)\r\n```\r\n\r\nWhich gives the error (from the line `fig = go.Figure(fig_raw)` on the second callback call):\r\n```\r\nValueError: Invalid property specified for object of type\r\nplotly.graph_objs.layout.xaxis.rangeslider.YAxis: '_template'\r\n```\r\n\r\nUntil this is fixed, removing the problematic container (you could even remove just `_template`) can avoid the error:\r\n```py\r\n    # add these lines before fig = go.Figure(fig_raw)\r\n    if 'rangeslider' in fig_raw['layout']['xaxis']:\r\n        del fig_raw['layout']['xaxis']['rangeslider']['yaxis']\r\n```","author":{"url":"https://github.com/alexcjohnson","@type":"Person","name":"alexcjohnson"},"datePublished":"2022-09-06T14:24:32Z","url":"https://github.com/plotly/plotly.js/issues/6310"}

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:e6040afb-277d-7a2d-9e1d-0e687b4f7734
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB58:1F2F:BA6B27:F8862D:6B01AD61
html-safe-nonceec470137932efbe294991bd8c07eae39ee997687d4cc0efa74d534edccd2a8a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjU4OjFGMkY6QkE2QjI3OkY4ODYyRDo2QjAxQUQ2MSIsInZpc2l0b3JfaWQiOiI3NzUyMjEwMDI3MzkzNDI4ODMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac93c1fb5f3e3fd9831b0668decf106e04d32d6108afe41d69407fa8401774c3f3
hovercard-subject-tagissue:1363372414
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/6310/issue_layout
twitter:imagehttps://opengraph.githubassets.com/51f736d695b228bbdeb033d3d736f4f1d8906a5cdb0646dc4fbd0026c6769cc0/plotly/plotly.js/issues/6310
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/51f736d695b228bbdeb033d3d736f4f1d8906a5cdb0646dc4fbd0026c6769cc0/plotly/plotly.js/issues/6310
og:image:altWhen you add a rangeslider, its yaxis container gets _template: null inserted into the input (layout) object. This isn't an attribute, so it should only be inserted in the fullLayout object, not th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexcjohnson
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/6310#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F6310
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%2F6310
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/6310
Reloadhttps://github.com/plotly/plotly.js/issues/6310
Reloadhttps://github.com/plotly/plotly.js/issues/6310
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/6310
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/6310
#8161https://github.com/plotly/plotly.js/pull/8161
rangeslider template bug (non-attribute inserted into layout instead of fullLayout)https://github.com/plotly/plotly.js/issues/6310#top
#8161https://github.com/plotly/plotly.js/pull/8161
https://github.com/emilykl
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
good for agenthttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%22
https://github.com/alexcjohnson
alexcjohnsonhttps://github.com/alexcjohnson
on Sep 6, 2022https://github.com/plotly/plotly.js/issues/6310#issue-1363372414
https://codepen.io/alexcjohnson/pen/vYjOvgJhttps://codepen.io/alexcjohnson/pen/vYjOvgJ
alexcjohnsonhttps://github.com/alexcjohnson
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 6, 2022https://github.com/plotly/plotly.js/issues/6310#event-7330994374
https://github.com/ssg-data
ssg-datahttps://github.com/ssg-data
on Dec 27, 2023https://github.com/plotly/plotly.js/issues/6310#issuecomment-1870598247
gvwilsonhttps://github.com/gvwilson
on Jul 12, 2024https://github.com/plotly/plotly.js/issues/6310#event-13486689967
gvwilsonhttps://github.com/gvwilson
on Aug 2, 2024https://github.com/plotly/plotly.js/issues/6310#event-13740561818
gvwilsonhttps://github.com/gvwilson
on Aug 9, 2024https://github.com/plotly/plotly.js/issues/6310#event-13823212340
gvwilsonhttps://github.com/gvwilson
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
on Aug 9, 2024https://github.com/plotly/plotly.js/issues/6310#event-13823213215
gvwilsonhttps://github.com/gvwilson
emilyklhttps://github.com/emilykl
on Aug 9, 2024https://github.com/plotly/plotly.js/issues/6310#event-13823214332
emilyklhttps://github.com/emilykl
good for agenthttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%22
on Aug 30, 2026https://github.com/plotly/plotly.js/issues/6310#event-30244386845
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/6310
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/6310
emilyklhttps://github.com/emilykl
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
good for agenthttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%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.