tests/testthat/test-plotter.R

context("dyOptions")

test_that("custom plotter", {
  d <- dygraph(ldeaths) %>% dyOptions(plotter = "function(){}")
  expect_false(is.null(d$x$attrs$plotter))
})
rstudio/dygraphs documentation built on March 17, 2023, 10:48 a.m.