Skip to content

Troubles with the use of dygraphs #356

Closed

Description

@odelaigue

With htmlwidgets 1.5.1, there are some big troubles with some functions of the dygraphs package (e.g. dyStackedBarGroup or dyShadow).
Its is OK with the version 1.3.
I don't know if you should fix htmlwidgets or @pshevtsov should adapt dygraphs to version 1.5.1.

library(dygraphs)
library(magrittr)

## dataset
lungDeaths <- cbind(fdeaths, mdeaths, ldeaths, foo = fdeaths/2, bar = fdeaths/3)

## A bunch of different plotters together:
dygraph(lungDeaths) %>%
  dyRangeSelector() %>%
  dyBarSeries('bar') %>% 
  dyStemSeries('mdeaths') %>% 
  dyShadow('foo') %>% 
  dyFilledLine('fdeaths')

## Stacked Bar and Ribbon Graphs:  
dygraph(lungDeaths) %>% 
  dySeries('mdeaths', axis = 'y2') %>%
  dyAxis('y', valueRange = c(-100, 1000)) %>% 
  dyStackedBarGroup(c('ldeaths', 'fdeaths'))

Activity

  1. wch commented on Nov 7, 2019

    @wch
    Contributor

    For the record, here's what I see when I run the first one:

    image

  2. wch commented on Nov 7, 2019

    @wch
    Contributor

    I've bisected this to c998fae

  3. added a commit that references this issue on Nov 7, 2019
    93c00b8
  4. cpsievert commented on Nov 7, 2019

    @cpsievert
    Collaborator

    Here's a potential fix for this issue remotes::install_github("ramnathv/htmlwidgets#177")

  5. added a commit that references this issue on Nov 8, 2019
    b357323
  6. odelaigue commented on Nov 12, 2019

    @odelaigue
    Author

    Thank you very much for your responsiveness!

  7. odelaigue commented on Jan 24, 2020

    @odelaigue
    Author

    Do you think you will soon be submitting the latest version of htmlwidgets on the CRAN?
    Currently, packages using dygraphs still present potential troubles with htmlwidgets version 1.5.1.

  8. timelyportfolio commented on Feb 1, 2020

    @timelyportfolio
    Collaborator

    Thanks for all the work on this, but it seems rstudio/dygraphs#237 is still not working even after the fix. I'll dig a little when I have some time.

  9. added a commit that references this issue on Sep 30, 2020
    8b6e053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions