tests/testthat/test-series.R

context("dySeries")

test_that("series creation", {
  d <- dygraph(ldeaths) %>% dySeries(label = "series", fillGraph = FALSE)
  expect_identical(d$x$attrs$labels[[2]], "series")
  expect_identical(d$x$attrs$series[[1]]$fillGraph, FALSE)
})

Try the dygraphs package in your browser

Any scripts or data that you put into this service are public.

dygraphs documentation built on May 2, 2019, 3:34 p.m.