## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----args, eval = FALSE-------------------------------------------------------
# geom_args("line") #args in geom line
# geom_args("arearange")
# 
# # or
# highdir:::.get_geom("ranked_bar")$optional_args
# highdir:::.get_geom("arearange")$required_args

## ----eval = FALSE-------------------------------------------------------------
# # Set package-wide defaults for the session
# hd_set_theme(
#   hc_theme = "helsedirektoratet",
#   colors   = c("#025169", "#7C145C", "#C68803"),
#   font     = "Source Sans Pro"
# )
# 
# # All subsequent hd_make() calls use these settings automatically
# hd_make(spec, "column")

## ----eval = FALSE-------------------------------------------------------------
# fig <- hd_make(spec, "column")
# 
# # Inline JS
# fig <- hd_add_js(fig, code = "console.log('chart loaded');")
# 
# # From a .js file
# fig <- hd_add_js(fig, file = "path/to/my-plugin.js")
# 
# # From a bundled plugin (inst/js/<name>.js)
# fig <- hd_add_js(fig, plugin = "my-plugin")

