mages / googleVis

Interface between R and the Google Chart Tools
https://mages.github.io/googleVis/
358 stars 156 forks source link

Cannot get zoom arguments to work on Annotation Chart #64

Open Ravi1008 opened 7 years ago

Ravi1008 commented 7 years ago

Hi,

I am a newbie to googleVis package. I was looking at the examples from this link: https://www.rdocumentation.org/packages/googleVis/versions/0.6.0/topics/gvisAnnotationChart

(This particular example is not working and throwing an error a.getTime is not a function)

Zoom into the time window, no Y-axis ticks

A3 <- gvisAnnotationChart(Stock, datevar="Date", numvar="Value", idvar="Device", titlevar="Title", annotationvar="Annotation", options=list( width=600, height=350, zoomStartTime=as.Date("2008-01-04"), zoomEndTime=as.Date("2008-01-05")) ) plot(A3)

It seems like the error is javascript related. Can you please help resolve this.

mages commented 7 years ago

Thanks for logging this issue. I can confirm this issue as well. Not sure if this is caused by googleVis, or the Google API.

On 31 May 2017, at 07:42, Ravi1008 notifications@github.com wrote:

Hi,

I am a newbie to googleVis package. I was looking at the examples from this link: https://www.rdocumentation.org/packages/googleVis/versions/0.6.0/topics/gvisAnnotationChart

(This particular example is not working and throwing an error a.getTime is not a function)

Zoom into the time window, no Y-axis ticks

A3 <- gvisAnnotationChart(Stock, datevar="Date", numvar="Value", idvar="Device", titlevar="Title", annotationvar="Annotation", options=list( width=600, height=350, zoomStartTime=as.Date("2008-01-04"), zoomEndTime=as.Date("2008-01-05")) ) plot(A3)

It seems like the error is javascript related. Can you please help resolve this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

12E6FD9 commented 6 years ago

Is there any other way or format to push date into zoomStartTime/zoomEndTime until issue is not fixed?