{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/dygraphs/issues/195","repository_url":"https://api.github.com/repos/rstudio/dygraphs","labels_url":"https://api.github.com/repos/rstudio/dygraphs/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/dygraphs/issues/195/comments","events_url":"https://api.github.com/repos/rstudio/dygraphs/issues/195/events","html_url":"https://github.com/rstudio/dygraphs/issues/195","id":283402568,"number":195,"title":"dgRibbon broken for more than 2^16+1 points","user":{"login":"jdnewmil","id":6993649,"avatar_url":"https://avatars3.githubusercontent.com/u/6993649?v=4","gravatar_id":"","url":"https://api.github.com/users/jdnewmil","html_url":"https://github.com/jdnewmil","followers_url":"https://api.github.com/users/jdnewmil/followers","following_url":"https://api.github.com/users/jdnewmil/following{/other_user}","gists_url":"https://api.github.com/users/jdnewmil/gists{/gist_id}","starred_url":"https://api.github.com/users/jdnewmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdnewmil/subscriptions","organizations_url":"https://api.github.com/users/jdnewmil/orgs","repos_url":"https://api.github.com/users/jdnewmil/repos","events_url":"https://api.github.com/users/jdnewmil/events{/privacy}","received_events_url":"https://api.github.com/users/jdnewmil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-19T23:29:46Z","updated_at":"2017-12-20T10:42:50Z","closed_at":null,"author_association":"NONE","body":"Trying to work with large number of data points with a ribbon, discovered that the plot \"disappears\" (white-on-white) when more than 2^16+1 points are used. Take the ribbon off and it works, or use a small enough number of points and it works. I have not figured out where the default parser is, but I think the bug is in the javascript, not the R code or json.\r\n\r\n``` r\r\nlibrary(dygraphs)\r\nlibrary(xts)\r\n#> Loading required package: zoo\r\n#> \r\n#> Attaching package: 'zoo'\r\n#> The following objects are masked from 'package:base':\r\n#> \r\n#>     as.Date, as.Date.numeric\r\nsessionInfo()\r\n#> R version 3.4.2 (2017-09-28)\r\n#> Platform: x86_64-w64-mingw32/x64 (64-bit)\r\n#> Running under: Windows 10 x64 (build 15063)\r\n#> \r\n#> Matrix products: default\r\n#> \r\n#> locale:\r\n#> [1] LC_COLLATE=English_United States.1252 \r\n#> [2] LC_CTYPE=English_United States.1252   \r\n#> [3] LC_MONETARY=English_United States.1252\r\n#> [4] LC_NUMERIC=C                          \r\n#> [5] LC_TIME=English_United States.1252    \r\n#> \r\n#> attached base packages:\r\n#> [1] stats     graphics  grDevices utils     datasets  methods   base     \r\n#> \r\n#> other attached packages:\r\n#> [1] xts_0.10-0       zoo_1.8-0        dygraphs_1.1.1.4\r\n#> \r\n#> loaded via a namespace (and not attached):\r\n#>  [1] Rcpp_0.12.13    lattice_0.20-35 digest_0.6.12   rprojroot_1.2  \r\n#>  [5] grid_3.4.2      backports_1.1.1 magrittr_1.5    evaluate_0.10.1\r\n#>  [9] stringi_1.1.5   rmarkdown_1.6   tools_3.4.2     stringr_1.2.0  \r\n#> [13] htmlwidgets_0.9 yaml_2.1.14     compiler_3.4.2  htmltools_0.3.6\r\n#> [17] knitr_1.17\r\nset.seed( 1 )\r\noklength <- 65536\r\nbadlength <- 65537 # related to use of 16bit int somewhere in Parser?\r\nokidx <- seq( 1, oklength )\r\nbadidx <- seq( 1, badlength )\r\nx <- rnorm( badlength )\r\ndtm <- (  as.POSIXct( \"2016-01-01\" )\r\n       + as.difftime( badidx - 1\r\n                    , units = \"mins\"\r\n                    )\r\n       )\r\ndtaok <- xts( x = x[ okidx ]\r\n            , order.by = dtm[ okidx ]\r\n            )\r\ndtabad <- xts( x = x\r\n             , order.by = dtm\r\n             )\r\nrdtabad <- rep( 0, badlength )\r\nrdtabad[ 0.75 < dtabad ] <- 1\r\nrdtaok <- rdtabad[ okidx ]\r\n\r\ndgok <- dygraph( dtaok ) %>%\r\n            dyRibbon( rdtaok )\r\n\r\ndgbad <- dygraph( dtabad ) %>%\r\n            dyRibbon( rdtabad )\r\n\r\n# plots ok, after a delay\r\nprint( dgok )\r\n\r\n# plots with no color (looks blank)\r\nprint( dgbad )\r\n\r\n# jsonbad <- renderDygraph( dgbad )()\r\n# appears valid?\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/dygraphs/issues/comments/353029199","html_url":"https://github.com/rstudio/dygraphs/issues/195#issuecomment-353029199","issue_url":"https://api.github.com/repos/rstudio/dygraphs/issues/195","id":353029199,"user":{"login":"pshevtsov","id":290451,"avatar_url":"https://avatars1.githubusercontent.com/u/290451?v=4","gravatar_id":"","url":"https://api.github.com/users/pshevtsov","html_url":"https://github.com/pshevtsov","followers_url":"https://api.github.com/users/pshevtsov/followers","following_url":"https://api.github.com/users/pshevtsov/following{/other_user}","gists_url":"https://api.github.com/users/pshevtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pshevtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshevtsov/subscriptions","organizations_url":"https://api.github.com/users/pshevtsov/orgs","repos_url":"https://api.github.com/users/pshevtsov/repos","events_url":"https://api.github.com/users/pshevtsov/events{/privacy}","received_events_url":"https://api.github.com/users/pshevtsov/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T10:42:50Z","updated_at":"2017-12-20T10:42:50Z","author_association":"COLLABORATOR","body":"Thanks, I'll have a look.\n\nOn Wed, Dec 20, 2017, 00:29 jdnewmil <notifications@github.com> wrote:\n\n> Trying to work with large number of data points with a ribbon, discovered\n> that the plot \"disappears\" (white-on-white) when more than 2^16+1 points\n> are used. Take the ribbon off and it works, or use a small enough number of\n> points and it works. I have not figured out where the default parser is,\n> but I think the bug is in the javascript, not the R code or json.\n>\n> library(dygraphs)\n> library(xts)#> Loading required package: zoo#> #> Attaching package: 'zoo'#> The following objects are masked from 'package:base':#> #>     as.Date, as.Date.numeric\n> sessionInfo()#> R version 3.4.2 (2017-09-28)#> Platform: x86_64-w64-mingw32/x64 (64-bit)#> Running under: Windows 10 x64 (build 15063)#> #> Matrix products: default#> #> locale:#> [1] LC_COLLATE=English_United States.1252 #> [2] LC_CTYPE=English_United States.1252   #> [3] LC_MONETARY=English_United States.1252#> [4] LC_NUMERIC=C                          #> [5] LC_TIME=English_United States.1252    #> #> attached base packages:#> [1] stats     graphics  grDevices utils     datasets  methods   base     #> #> other attached packages:#> [1] xts_0.10-0       zoo_1.8-0        dygraphs_1.1.1.4#> #> loaded via a namespace (and not attached):#>  [1] Rcpp_0.12.13    lattice_0.20-35 digest_0.6.12   rprojroot_1.2  #>  [5] grid_3.4.2      backports_1.1.1 magrittr_1.5    evaluate_0.10.1#>  [9] stringi_1.1.5   rmarkdown_1.6   tools_3.4.2     stringr_1.2.0  #> [13] htmlwidgets_0.9 yaml_2.1.14     compiler_3.4.2  htmltools_0.3.6#> [17] knitr_1.17\n> set.seed( 1 )oklength <- 65536badlength <- 65537 # related to use of 16bit int somewhere in Parser?okidx <- seq( 1, oklength )badidx <- seq( 1, badlength )x <- rnorm( badlength )dtm <- (  as.POSIXct( \"2016-01-01\" )\n>        + as.difftime( badidx - 1\n>                     , units = \"mins\"\n>                     )\n>        )dtaok <- xts( x = x[ okidx ]\n>             , order.by = dtm[ okidx ]\n>             )dtabad <- xts( x = x\n>              , order.by = dtm\n>              )rdtabad <- rep( 0, badlength )rdtabad[ 0.75 < dtabad ] <- 1rdtaok <- rdtabad[ okidx ]\n> dgok <- dygraph( dtaok ) %>%\n>             dyRibbon( rdtaok )\n> dgbad <- dygraph( dtabad ) %>%\n>             dyRibbon( rdtabad )\n> # plots ok, after a delay\n> print( dgok )\n> # plots with no color (looks blank)\n> print( dgbad )\n> # jsonbad <- renderDygraph( dgbad )()# appears valid?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rstudio/dygraphs/issues/195>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AARuk4MVrCytu0otBU7CVyfXSwcgZA95ks5tCEbrgaJpZM4RHsv3>\n> .\n>\n"}}
{"actor":{"display_login":"pshevtsov"}}