dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

dygraphs not showing graphs in Rstudio on Macbook

Open chaoshunh opened this issue 6 years ago • 3 comments

I used dygraph(nhtemp, main = "New Haven Temperatures")

The figure shows as follows image

chaoshunh avatar Jul 29 '18 06:07 chaoshunh

Hello @chaoshunh! I can't reproduce the issue. Could you please provide us with more details?

screen shot 2018-07-30 at 16 59 24

przmv avatar Aug 06 '18 15:08 przmv

I am also having the same issue. Also on macbook pro 2018.

https://rstudio.github.io/dygraphs/gallery-series-options.html

I have tried multiple examples as shown in the gallery. Getting the same figure as @chaoshunh

Is there are the solution to this?

fakedrpenguin avatar Aug 22 '18 19:08 fakedrpenguin

I have the exact same issue. There is a problem with the asISO8601Time function in the utils.r. For some reason on my Mac the format results in:

> format(as.POSIXct(Sys.Date(), tz="GMT"), format = "%04Y-%m-%dT%H:%M:%OS3Z", tz = 'GMT')
[1] "4Y-03-10T00:00:00.000Z"

This is not a valid date so the js complains.

Removing the 04 seems to work. At least for my system.

> format(as.POSIXct(Sys.Date(), tz="GMT"), format = "%Y-%m-%dT%H:%M:%OS3Z", tz = 'GMT')
[1] "2020-03-10T00:00:00.000Z"

tamas-borbath avatar Mar 10 '20 10:03 tamas-borbath