user3540381
user3540381

Reputation: 21

gvisAnnotationChart and zoomStartTime / zoomEndTime

I'm having some trouble with the zoomStartTime and zoomEndTime parameters of gvisAnnotationChart from the googleVis package.

Specifically, running example three:

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)

Produces a plot with "undefined is not a function" in the y scroll area.

The documentation states "Zoom into the time window, no Y-axis ticks" but has no other information. I have seen several examples on JSFiddle of this working, Configuring Google Annotated Timeline, but I can't translate this to R. Any help would be appreciated.

Upvotes: 1

Views: 279

Answers (0)

Related Questions