Title: event handlers are not typed · Issue #283 · plotly/angular-plotly.js · GitHub
Open Graph Title: event handlers are not typed · Issue #283 · plotly/angular-plotly.js
X Title: event handlers are not typed · Issue #283 · plotly/angular-plotly.js
Description: angular-plotly.js/projects/plotly/src/lib/plotly.component.ts Line 80 in 5201d97 plotlyClick = output(); I was attempting to implement some drill down functionality in the charts in my dashboard. Unfortunately, when I bound a method in m...
Open Graph Description: angular-plotly.js/projects/plotly/src/lib/plotly.component.ts Line 80 in 5201d97 plotlyClick = output(); I was attempting to implement some drill down functionality in the charts in my dashboard. U...
X Description: angular-plotly.js/projects/plotly/src/lib/plotly.component.ts Line 80 in 5201d97 plotlyClick = output(); I was attempting to implement some drill down functionality in the charts in my dashboard. U...
Opengraph URL: https://github.com/plotly/angular-plotly.js/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"event handlers are not typed","articleBody":"https://github.com/plotly/angular-plotly.js/blob/5201d97fc2e01e5533d08a921cd44e28265a9222/projects/plotly/src/lib/plotly.component.ts#L80\n\nI was attempting to implement some drill down functionality in the charts in my dashboard. Unfortunately, when I bound a method in my component to the `(plotlyClick)` output, I noticed that the type of `$event` was void. But my component method typed the event as `unknown` anyway, and I console.log the event object, and there is a ton of information in there.\n\nOn this line: https://github.com/plotly/angular-plotly.js/blob/master/projects/plotly/src/lib/plotly.component.ts#L241\n\n...I can see that the output indeed is emitting data, just like my logging indicated. Is there anyway we could get these outputs typed? I imagine that the type would be pretty broad due to the amount of different charts/maps out there. But TypeScript thinking that the output is void is probably worse then just not knowing what the event data looks like, but still acknowledging its existence.","author":{"url":"https://github.com/jakehockey10","@type":"Person","name":"jakehockey10"},"datePublished":"2025-07-29T22:38:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/283/angular-plotly.js/issues/283"}
| 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:5d7f07c2-1cb0-58ef-0820-a3add2e3fd26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFA0:15585B:76EEF:9F475:6964F5F1 |
| html-safe-nonce | 624345d2c87c71a94c21871cf0261daf34d402f3ddb46d872fa8aa68dee311c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkEwOjE1NTg1Qjo3NkVFRjo5RjQ3NTo2OTY0RjVGMSIsInZpc2l0b3JfaWQiOiIzOTI5OTY1NzE2OTM1MzQxNTUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e8ef2d91552db47d45621a2cbf72dd6f73c50b5787f43ae5e38065ccfbd06f9 |
| hovercard-subject-tag | issue:3275154734 |
| 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/angular-plotly.js/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21b5e99c528f10aa6ca9e394e5fda5e7df08a31f6b49f6efacdea1b724215544/plotly/angular-plotly.js/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21b5e99c528f10aa6ca9e394e5fda5e7df08a31f6b49f6efacdea1b724215544/plotly/angular-plotly.js/issues/283 |
| og:image:alt | angular-plotly.js/projects/plotly/src/lib/plotly.component.ts Line 80 in 5201d97 plotlyClick = output(); I was attempting to implement some drill down functionality in the charts in my dashboard. U... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakehockey10 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 003e962bf5ca78f3f8f71db2461c6a7f9cfcbe99b480d6aeddaef78d33e9161a |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/angular-plotly.js git https://github.com/plotly/angular-plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 125262347 |
| octolytics-dimension-repository_nwo | plotly/angular-plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125262347 |
| octolytics-dimension-repository_network_root_nwo | plotly/angular-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 | 21cbf6733480c5c09366f15b8dc8b6953472172a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width