Title: highlight_key isn't working with shiny - TypeError: pt.pointNumber is undefined · Issue #1610 · plotly/plotly.R · GitHub
Open Graph Title: highlight_key isn't working with shiny - TypeError: pt.pointNumber is undefined · Issue #1610 · plotly/plotly.R
X Title: highlight_key isn't working with shiny - TypeError: pt.pointNumber is undefined · Issue #1610 · plotly/plotly.R
Description: I was trying to highlight an histogram bar with plotly and shiny. The combinaison of functions highlight_key and highlight are working in my usecase with plotly. But when I put this code in a shiny app, the app is crashing with the javas...
Open Graph Description: I was trying to highlight an histogram bar with plotly and shiny. The combinaison of functions highlight_key and highlight are working in my usecase with plotly. But when I put this code in a shiny...
X Description: I was trying to highlight an histogram bar with plotly and shiny. The combinaison of functions highlight_key and highlight are working in my usecase with plotly. But when I put this code in a shiny...
Opengraph URL: https://github.com/plotly/plotly.R/issues/1610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"highlight_key isn't working with shiny - TypeError: pt.pointNumber is undefined","articleBody":"I was trying to highlight an histogram bar with plotly and shiny. \r\nThe combinaison of functions highlight_key and highlight are working in my usecase with plotly.\r\nBut when I put this code in a shiny app, the app is crashing with the javascript error: \r\n\r\n```\r\nTypeError: pt.pointNumber is undefined\r\n```\r\n\r\nThis is the code I use with plotly only:\r\n\r\n```r\r\n inputCol \u003c- \"carb\"\r\n highlight_key(mtcars, ~carb) %>%\r\n plot_ly(x = ~mtcars[[inputCol]],\r\n type = \"histogram\") %>%\r\n layout(barmode = \"overlay\") %>% \r\n highlight(on = \"plotly_hover\", off=\"plotly_deselect\") \r\n```\r\n\r\nThis is the same code inside a shiny app: \r\n\r\n```r\r\n #### Dependencies ####\r\n library(shiny)\r\n library(plotly)\r\n library(plyr)\r\n\r\n # Define UI for application that draws a histogram\r\n ui \u003c- fluidPage(\r\n \r\n # Sidebar with a slider input for number of bins \r\n sidebarLayout(\r\n sidebarPanel(\r\n verbatimTextOutput(\"text\")\r\n ),\r\n\r\n # Show a plot of the generated distribution\r\n mainPanel(\r\n plotlyOutput(\"distPlotTest\")\r\n )\r\n )\r\n )\r\n \r\n # Define server logic required to draw a histogram\r\n server \u003c- function(input, output) {\r\n\r\n \r\n output$distPlotTest \u003c- renderPlotly({\r\n\r\n inputCol \u003c- \"carb\"\r\n highlight_key(mtcars, ~carb) %>%\r\n plot_ly(x = ~mtcars[[inputCol]],\r\n type = \"histogram\") %>%\r\n layout(barmode = \"overlay\") %>% \r\n highlight(on = \"plotly_hover\", off=\"plotly_deselect\") \r\n \r\n \r\n })\r\n \r\n }\r\n \r\n # Run the application\r\n shinyApp(ui = ui, server = server) # Run the application without password\r\n```","author":{"url":"https://github.com/JeremyBesson","@type":"Person","name":"JeremyBesson"},"datePublished":"2019-09-03T15:14:28Z","url":"https://github.com/plotly/plotly.R/issues/1610"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9f060949-bd50-73d1-89e0-a9715c8e09b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D82:4E3C:DE8D74:12817C9:6B00FEDB |
| html-safe-nonce | a48d7dcb3bfc9d12bef7625ed5fe377e2138d703544eef0d865e42da92775431 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDgyOjRFM0M6REU4RDc0OjEyODE3Qzk6NkIwMEZFREIiLCJ2aXNpdG9yX2lkIjoiMzM5NTkyNzA5OTY3MDg1NTM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 19eaed1cb22cc6bb0d3121bd7a8a3d8fc071bdc68e6fdbdb9b207e75dfba8c30 |
| hovercard-subject-tag | issue:488666851 |
| 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/plotly.R/1610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ff3431e894b6ad07fdc54273cf0ffcd5a77375677631faa9d967fb0ae7782f6/plotly/plotly.R/issues/1610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ff3431e894b6ad07fdc54273cf0ffcd5a77375677631faa9d967fb0ae7782f6/plotly/plotly.R/issues/1610 |
| og:image:alt | I was trying to highlight an histogram bar with plotly and shiny. The combinaison of functions highlight_key and highlight are working in my usecase with plotly. But when I put this code in a shiny... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeremyBesson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579179 |
| octolytics-dimension-repository_nwo | plotly/plotly.R |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579179 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.R |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width