Function to export js file the configuration options

Share:

Description

Function to export js file the configuration options

Usage

1
export_hc(hc, filename = NULL)

Arguments

hc

A A highcarts object

filename

A string

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
fn <- "function(){
  console.log('Category: ' + this.category);
  alert('Category: ' + this.category);
}"

hc <- highcharts_demo() %>% 
  hc_plotOptions(
    series = list(
      cursor = "pointer",
        point = list(
          events = list(
            click = JS(fn)
         )
       )
   )
 )

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.