You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I plot basic graphs there aren't any issues, however when I try to plot something like dyBarSeries(), it plots the points on the graph and shows them when I pass with the cursor, however no barplots are generated.
Here is a reproducible example taken straight from the dygraphs for R github pages:
I realized similar behavior after upgrading to htmlwidgets 1.5.1, potentially related to htmlwidgets 349. Basically the plot is built, mouseover has desired effect, but bars fail to appear. In fact, most of the examples on the Plotters page of the dygraphs website fail to produce expected plot.
reprex
library(dygraphs)
lungDeaths<- cbind(mdeaths, fdeaths)
dygraph(
lungDeaths
) %>%
dyStackedBarGroup(
name= colnames(lungDeaths)
)
# Similar behavior
dygraph(lungDeaths) %>%
dyBarSeries('fdeaths') %>%
dyFilledLine('mdeaths')
# Try just the dyBarSeries and a line is produced
dygraph(lungDeaths) %>%
dyRangeSelector() %>%
dyBarSeries('fdeaths')
Result of sessionInfo() from Windows below, but behavior reproducible on Centos7 machine.
Hi,
I had the same issue : when using dygraphs 1.1.1.6 with htmlwidgets 1.5.1 and R 3.6.2 under Windows, the dyBarSeries() and dyFilledLine() plotters did not show on the dygraph.
Below is a reproducible example and the session info
library( dygraphs )
library( dplyr )
lungDeaths <- cbind(mdeaths, fdeaths)
dygraph(lungDeaths) %>%
dyRangeSelector() %>%
dyBarSeries('fdeaths') %>%
dyFilledLine('mdeaths')
sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_0.8.3 dygraphs_1.1.1.6
loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 lattice_0.20-38 zoo_1.8-6 crayon_1.3.4 packrat_0.5.0 digest_0.6.23 assertthat_0.2.1 grid_3.6.2
[9] R6_2.4.1 magrittr_1.5 pillar_1.4.3 rlang_0.4.2 rstudioapi_0.10 tools_3.6.2 glue_1.3.1 htmlwidgets_1.5.1
[17] purrr_0.3.3 compiler_3.6.2 pkgconfig_2.0.3 htmltools_0.4.0 tidyselect_0.2.5 tibble_2.1.3
Resulting plot :
The javascript console indicates an error :
Uncaught TypeError: y is not a function
at t.renderLineChart (dygraph-combined.js:2)
at t.render (dygraph-combined.js:2)
at t.renderGraph (dygraph-combined.js:3)
at t.drawGraph_ (dygraph-combined.js:3)
at t.predraw_ (dygraph-combined.js:3)
at t.start_ (dygraph-combined.js:3)
at t.init (dygraph-combined.js:2)
at new t (dygraph-combined.js:2)
at Object.renderValue (dygraphs.js:231)
at Object.renderValue (htmlwidgets.js:886)
I discovered that htmlwidgets 1.5 had been upgraded to jQuery 3 while dygraphs 1.1.1.6 had not and got the dyplotters work by downgrading htmlwidgets to version 1.3.
`htmlwidgets 1.5
Fixed an incompatibility with Shiny v1.4.0: due to Shiny upgrading
from jQuery 1.x to 3.x, the timing of some initialization routines
has changed. This caused some widget renderValue calls to occur at
an earlier point in Shiny's initialization process than with earlier
versions of Shiny. (#345)`
Yet this solution is only temporary as I suppose more dependencies will upgrade to jQuery 3.
Is it planned to upgrade the dygraphs package code to jQuery 3?
Activity
Huh commentedon Nov 14, 2019
I realized similar behavior after upgrading to htmlwidgets 1.5.1, potentially related to htmlwidgets 349. Basically the plot is built, mouseover has desired effect, but bars fail to appear. In fact, most of the examples on the Plotters page of the dygraphs website fail to produce expected plot.
reprex
Result of
sessionInfo()from Windows below, but behavior reproducible on Centos7 machine.cpelat commentedon Jan 31, 2020
Hi,
I had the same issue : when using dygraphs 1.1.1.6 with htmlwidgets 1.5.1 and R 3.6.2 under Windows, the dyBarSeries() and dyFilledLine() plotters did not show on the dygraph.
Below is a reproducible example and the session info
Resulting plot :

The javascript console indicates an error :
I discovered that htmlwidgets 1.5 had been upgraded to jQuery 3 while dygraphs 1.1.1.6 had not and got the dyplotters work by downgrading htmlwidgets to version 1.3.
`htmlwidgets 1.5
from jQuery 1.x to 3.x, the timing of some initialization routines
has changed. This caused some widget
renderValuecalls to occur atan earlier point in Shiny's initialization process than with earlier
versions of Shiny. (#345)`
Yet this solution is only temporary as I suppose more dependencies will upgrade to jQuery 3.
Is it planned to upgrade the dygraphs package code to jQuery 3?
Thanks a lot for your answer.
Camille
timelyportfolio commentedon Feb 1, 2020
I am experiencing the same issue. I will see if I can find a solution.
timelyportfolio commentedon Feb 1, 2020
@cpelat see ramnathv/htmlwidgets#356
cpelat commentedon Feb 3, 2020
Thanks @timelyportfolio for the info !