JavaScript error when trying to build a hide/show feature into a dygraph (from an R markdown) – Jquery
I'm creating a dygraph using this: library(dygraphs) library(htmlwidgets) library(rgl) knitr::opts_chunk$set(echo = TRUE) knitr::knit_hooks$set(webgl = hook_webgl) includeScript('C://Desktop//Javascripts/dygraph.js') includeScript('C://Desktop//Javascripts/jquery-3.6.0.js') df<-data.frame(date = seq(as.Date("1980-03-01), length.out = 100, by="day), Long = rnorm(100,50,10), Medium = rnorm(100,30, 5), Short = rnorm(100,10,2), Very.Short = rnorm(100,5,1)) dygraph(df, elementId="the_plot") %>%…