{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/dygraphs/issues/20","labels_url":"https://api.github.com/repos/rstudio/dygraphs/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/dygraphs/issues/20/comments","events_url":"https://api.github.com/repos/rstudio/dygraphs/issues/20/events","html_url":"https://github.com/rstudio/dygraphs/issues/20","id":52837215,"number":20,"title":"group option may kill your browser in Shiny apps","user":{"login":"HermanSontrop","id":3974807,"avatar_url":"https://avatars.githubusercontent.com/u/3974807?v=3","gravatar_id":"","url":"https://api.github.com/users/HermanSontrop","html_url":"https://github.com/HermanSontrop","followers_url":"https://api.github.com/users/HermanSontrop/followers","following_url":"https://api.github.com/users/HermanSontrop/following{/other_user}","gists_url":"https://api.github.com/users/HermanSontrop/gists{/gist_id}","starred_url":"https://api.github.com/users/HermanSontrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HermanSontrop/subscriptions","organizations_url":"https://api.github.com/users/HermanSontrop/orgs","repos_url":"https://api.github.com/users/HermanSontrop/repos","events_url":"https://api.github.com/users/HermanSontrop/events{/privacy}","received_events_url":"https://api.github.com/users/HermanSontrop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-24T21:24:37Z","updated_at":"2015-05-08T17:56:15Z","closed_at":"2015-05-08T17:56:15Z","body":"Hi,\r\n\r\nthanks for the great work on making the dygraphs functionality available in Shiny! \r\n\r\nI came across some unexpected behavior of the dygraph package which kills your browser session (I tried the most recent versions of Firefox, Chrome and IE). \r\n\r\nWhat I basically do is use renderUI to dynamically create a set of dygraphs. \r\n\r\nLet's say I have an appropriate xts object called DD, which has as rownames the time information and a set of 10 columns containing some data. Now let's say I want to dynamically construct a set of 10 separate dygraphs i.e. one for each column in DD.\r\n\r\nThis code chunk works just fine:\r\n```\r\n# ui.r \r\nuiOutput(Charts)\r\n\r\n# server.r\r\noutput$Charts <- renderUI({\r\n  \r\n  # insert some code here to construct an xts object called DD\r\n\r\n  L <- lapply(1:10, function(i){\r\n    # generate a chart ID\r\n    ID   <- paste0(\"Chart\",i)\r\n\r\n   # use it to directly assign a dygraph to output\r\n    output[[ID]] <- renderDygraph({\r\n      dygraph(dd[,i], main = \"\") \r\n    })\r\n    \r\n   # put ui.r related calls in a list\r\n    return(dygraphOutput(outputId = ID, height = \"150px\"))\r\n  })\r\n  \r\n  # return the list\r\n  return(L)\r\n})\r\n```\r\nIf I add some options to the dygraphs all goes well, until you say you want to use the group statement to link the zoom behavior of multiple dygraphs. When you do this and run the code your browser is dead :-( \r\n\r\nThat is, if you were to use e.g. \r\n\r\n```\r\noutput[[ID]] <- renderDygraph({\r\n      dygraph(dd[,i], main = \"\", group = \"Source\") \r\n  })\r\n```\r\n\r\nI think this is a bug.\r\n\r\nkind regards, Herman\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/dygraphs/issues/comments/100312118","html_url":"https://github.com/rstudio/dygraphs/issues/20#issuecomment-100312118","issue_url":"https://api.github.com/repos/rstudio/dygraphs/issues/20","id":100312118,"user":{"login":"jjallaire","id":104391,"avatar_url":"https://avatars.githubusercontent.com/u/104391?v=3","gravatar_id":"","url":"https://api.github.com/users/jjallaire","html_url":"https://github.com/jjallaire","followers_url":"https://api.github.com/users/jjallaire/followers","following_url":"https://api.github.com/users/jjallaire/following{/other_user}","gists_url":"https://api.github.com/users/jjallaire/gists{/gist_id}","starred_url":"https://api.github.com/users/jjallaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjallaire/subscriptions","organizations_url":"https://api.github.com/users/jjallaire/orgs","repos_url":"https://api.github.com/users/jjallaire/repos","events_url":"https://api.github.com/users/jjallaire/events{/privacy}","received_events_url":"https://api.github.com/users/jjallaire/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T17:56:15Z","updated_at":"2015-05-08T17:56:15Z","body":"Fixed here: https://github.com/rstudio/dygraphs/commit/f22b90e514a6f9b40799dd8190e25a0eb78bc065. "}}