{"action":"created","issue":{"url":"https://api.github.com/repos/jbkunst/highcharter/issues/224","repository_url":"https://api.github.com/repos/jbkunst/highcharter","labels_url":"https://api.github.com/repos/jbkunst/highcharter/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/jbkunst/highcharter/issues/224/comments","events_url":"https://api.github.com/repos/jbkunst/highcharter/issues/224/events","html_url":"https://github.com/jbkunst/highcharter/issues/224","id":193665515,"number":224,"title":"heatmap doesn't work","user":{"login":"tanerumit","id":8853634,"avatar_url":"https://avatars.githubusercontent.com/u/8853634?v=3","gravatar_id":"","url":"https://api.github.com/users/tanerumit","html_url":"https://github.com/tanerumit","followers_url":"https://api.github.com/users/tanerumit/followers","following_url":"https://api.github.com/users/tanerumit/following{/other_user}","gists_url":"https://api.github.com/users/tanerumit/gists{/gist_id}","starred_url":"https://api.github.com/users/tanerumit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanerumit/subscriptions","organizations_url":"https://api.github.com/users/tanerumit/orgs","repos_url":"https://api.github.com/users/tanerumit/repos","events_url":"https://api.github.com/users/tanerumit/events{/privacy}","received_events_url":"https://api.github.com/users/tanerumit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T02:18:43Z","updated_at":"2016-12-06T05:13:50Z","closed_at":null,"body":"I am trying to recreate the heatmap example in the showcase:\r\n\r\n```r\r\ndata(\"vaccines\")\r\nlibrary(\"viridis\")\r\n\r\nfntltp <- JS(\"function(){\r\n  return this.point.x + ' ' +  this.series.yAxis.categories[this.point.y] + ':<br>' +\r\n  Highcharts.numberFormat(this.point.value, 2);\r\n}\")\r\n\r\nstpscol <- color_stops(10, rev(viridis(10)))\r\n\r\nplotline <- list(\r\n  color = \"#fde725\", value = 1963, width = 2, zIndex = 5,\r\n  label = list(\r\n    text = \"Vaccine Intoduced\", verticalAlign = \"top\",\r\n    style = list(color = \"#606060\"), textAlign = \"left\",\r\n    rotation = 0, y = -5)\r\n)\r\n\r\nthm <- hc_theme_smpl(\r\n  yAxis = list(\r\n    offset = -20,\r\n    tickLength =  0,\r\n    gridLineWidth = 0,\r\n    minorGridLineWidth = 0,\r\n    labels = list(style = list(fontSize = \"8px\"))\r\n  )\r\n)\r\n\r\nhchart(vaccines, \"heatmap\", x = year, y = state, value = count) %>% \r\n  hc_colorAxis(stops = stpscol, type = \"logarithmic\") %>% \r\n  hc_yAxis(reversed = TRUE) %>% \r\n  hc_tooltip(formatter = fntltp) %>% \r\n  hc_xAxis(plotLines = list(plotline)) %>%\r\n  hc_title(text = \"Infectious Diseases and Vaccines\") %>% \r\n  hc_legend(layout = \"vertical\", verticalAlign = \"top\",\r\n            align = \"right\", valueDecimals = 0) %>% \r\n  hc_add_theme(thm) %>% \r\n  hc_size(height = 800)\r\n\r\n```\r\nWhen I run the code, it gives me the following error: \"Error in `[[<-.data.frame`(`*tmp*`, \"xf\", value = integer(0)) : replacement has 0 rows, data has 3876\"\r\n\r\nI have the latest github release, and also tried the cran version as well.. Seems like a bug?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jbkunst/highcharter/issues/comments/265062736","html_url":"https://github.com/jbkunst/highcharter/issues/224#issuecomment-265062736","issue_url":"https://api.github.com/repos/jbkunst/highcharter/issues/224","id":265062736,"user":{"login":"tanerumit","id":8853634,"avatar_url":"https://avatars.githubusercontent.com/u/8853634?v=3","gravatar_id":"","url":"https://api.github.com/users/tanerumit","html_url":"https://github.com/tanerumit","followers_url":"https://api.github.com/users/tanerumit/followers","following_url":"https://api.github.com/users/tanerumit/following{/other_user}","gists_url":"https://api.github.com/users/tanerumit/gists{/gist_id}","starred_url":"https://api.github.com/users/tanerumit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanerumit/subscriptions","organizations_url":"https://api.github.com/users/tanerumit/orgs","repos_url":"https://api.github.com/users/tanerumit/repos","events_url":"https://api.github.com/users/tanerumit/events{/privacy}","received_events_url":"https://api.github.com/users/tanerumit/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T05:13:50Z","updated_at":"2016-12-06T05:13:50Z","body":"Yeah, it worked! Thanks!!"}}
{"actor":{"display_login":"tanerumit"}}