tests/testthat/test-axis.R

context("dyAxis")

test_that("axis creation", {
  d <- dygraph(ldeaths) %>% dyAxis("x", label = "x-axis", drawGrid = FALSE)
  expect_identical(d$x$attrs$xlabel, "x-axis")
  expect_identical(d$x$attrs$axes$x$drawGrid, 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.