EVOLUTION-MANAGER
Edit File: export_hc.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Function to export js file the configuration options</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for export_hc {highcharter}"><tr><td>export_hc {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Function to export js file the configuration options</h2> <h3>Description</h3> <p>Function to export js file the configuration options </p> <h3>Usage</h3> <pre> export_hc(hc, filename = NULL, as = "is", name = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>hc</code></td> <td> <p>A <code>Highcharts object</code>.</p> </td></tr> <tr valign="top"><td><code>filename</code></td> <td> <p>String of the exported file.</p> </td></tr> <tr valign="top"><td><code>as</code></td> <td> <p>String to define how to save the configuration options. One of 'is', 'container', 'variable'.</p> </td></tr> <tr valign="top"><td><code>name</code></td> <td> <p>A variable used to put as name of the generated object if <code>as</code> is <code>'variable'</code> and the css/js selector if is <code>as</code> is container.</p> </td></tr> </table> <h3>Examples</h3> <pre> 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) ) ) ) ) ## Not run: export_hc(hc, filename = "~/hc_is.js", as = "is") export_hc(hc, filename = "~/hc_vr.js", as = "variable", name = "objectname") export_hc(hc, filename = "~/hc_ct.js", as = "container", name = "#selectorid") ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>