René's URL Explorer Experiment


Title: Added click event on pie charts. by mdtusz · Pull Request #111 · plotly/plotly.js · GitHub

Open Graph Title: Added click event on pie charts. by mdtusz · Pull Request #111 · plotly/plotly.js

X Title: Added click event on pie charts. by mdtusz · Pull Request #111 · plotly/plotly.js

Description: From issue #105. It seems like a bit of an ugly hack, but there doesn't appear to be a standardized method for the click event. The ugly part of adding slices[0][0].__data__.trace is because for some reason, only the first slice in the each loop - the largest slice - contains the trace data. I'd prefer to make some changes before merging this in, but I'm open to suggestions.

Open Graph Description: From issue #105. It seems like a bit of an ugly hack, but there doesn't appear to be a standardized method for the click event. The ugly part of adding slices[0][0].__data__.trace is because fo...

X Description: From issue #105. It seems like a bit of an ugly hack, but there doesn't appear to be a standardized method for the click event. The ugly part of adding slices[0][0].__data__.trace is becaus...

Opengraph URL: https://github.com/plotly/plotly.js/pull/111

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:464bf9f2-bd2e-6f78-77dc-2fcc018a0124
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8726:27D3AD:312CC37:3E742E8:6B01CA8F
html-safe-nonce3498d134b6e1fd49271a3e020890e4c0b2f66832e5f0ef879245d68a02df83c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzI2OjI3RDNBRDozMTJDQzM3OjNFNzQyRTg6NkIwMUNBOEYiLCJ2aXNpdG9yX2lkIjoiNzU0OTg0MjYwNTkwMzgyNTU1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2bb8025e2197683fc398d0888d5e69f7fe8eb56fd8cb18fdaf87c66703832895
hovercard-subject-tagpull_request:53596758
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/plotly/plotly.js/pull/111/files
twitter:imagehttps://avatars.githubusercontent.com/u/6494463?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6494463?s=400&v=4
og:image:altFrom issue #105. It seems like a bit of an ugly hack, but there doesn't appear to be a standardized method for the click event. The ugly part of adding slices[0][0].__data__.trace is because fo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/plotly/plotly.js/pull/111/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fpull%2F111%2Ffiles
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%2Fpull%2F111%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/pull/111/files
Reloadhttps://github.com/plotly/plotly.js/pull/111/files
Reloadhttps://github.com/plotly/plotly.js/pull/111/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fplotly%2Fplotly.js%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fplotly%2Fplotly.js%2Fissues%2Fnew%2Fchoose
mdtuszhttps://github.com/mdtusz
masterhttps://github.com/plotly/plotly.js/tree/master
pie-clickhttps://github.com/plotly/plotly.js/tree/pie-click
Conversation 13 https://github.com/plotly/plotly.js/pull/111
Commits 3 https://github.com/plotly/plotly.js/pull/111/commits
Checks 0 https://github.com/plotly/plotly.js/pull/111/checks
Files changed https://github.com/plotly/plotly.js/pull/111/files
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
Added click event on pie charts. https://github.com/plotly/plotly.js/pull/111/files#top
Show all changes 3 commits https://github.com/plotly/plotly.js/pull/111/files
cfe304d Added click event on pie charts. mdtusz Dec 14, 2015 https://github.com/plotly/plotly.js/pull/111/commits/cfe304dc73f86019cf9cdc01b7cc5e3c59c155f6
21aabf2 Change to reference cd.trace mdtusz Dec 14, 2015 https://github.com/plotly/plotly.js/pull/111/commits/21aabf29e6fcaab901ebdc341f3fda03e747aff7
0800e15 Pie slice returned in an array on click mdtusz Dec 15, 2015 https://github.com/plotly/plotly.js/pull/111/commits/0800e15632e5ab0cb472715b3ccb86300dffb686
Clear filters https://github.com/plotly/plotly.js/pull/111/files
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
graph_interact.js https://github.com/plotly/plotly.js/pull/111/files#diff-9c325f1fe845cf45c705407012f4d4d0be31a9d9fbead70d1f70c5dedde9c634
index.js https://github.com/plotly/plotly.js/pull/111/files#diff-94a6ff99066420a6f084fa9806293194394ad3c5e86afa7c033e997f3364be21
src/plots/cartesian/graph_interact.jshttps://github.com/plotly/plotly.js/pull/111/files#diff-9c325f1fe845cf45c705407012f4d4d0be31a9d9fbead70d1f70c5dedde9c634
View file https://github.com/plotly/plotly.js/blob/0800e15632e5ab0cb472715b3ccb86300dffb686/src/plots/cartesian/graph_interact.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/plotly/plotly.js/pull/111/{{ revealButtonHref }}
https://github.com/plotly/plotly.js/pull/111/files#diff-9c325f1fe845cf45c705407012f4d4d0be31a9d9fbead70d1f70c5dedde9c634
etpinardhttps://github.com/etpinard
Dec 14, 2015https://github.com/plotly/plotly.js/pull/111/files#r47529819
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@mdtuszhttps://github.com/mdtusz
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
mdtuszhttps://github.com/mdtusz
Dec 14, 2015https://github.com/plotly/plotly.js/pull/111/files#r47530835
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
etpinardhttps://github.com/etpinard
Dec 14, 2015https://github.com/plotly/plotly.js/pull/111/files#r47538563
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/plotly/plotly.js/pull/111/files
https://github.com/plotly/plotly.js/pull/111/files#diff-9c325f1fe845cf45c705407012f4d4d0be31a9d9fbead70d1f70c5dedde9c634
src/traces/pie/index.jshttps://github.com/plotly/plotly.js/pull/111/files#diff-94a6ff99066420a6f084fa9806293194394ad3c5e86afa7c033e997f3364be21
View file https://github.com/plotly/plotly.js/blob/0800e15632e5ab0cb472715b3ccb86300dffb686/src/traces/pie/index.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/plotly/plotly.js/pull/111/{{ revealButtonHref }}
https://github.com/plotly/plotly.js/pull/111/files#diff-94a6ff99066420a6f084fa9806293194394ad3c5e86afa7c033e997f3364be21
https://github.com/plotly/plotly.js/pull/111/files#diff-94a6ff99066420a6f084fa9806293194394ad3c5e86afa7c033e997f3364be21
https://github.com/plotly/plotly.js/pull/111/files#diff-94a6ff99066420a6f084fa9806293194394ad3c5e86afa7c033e997f3364be21
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.