hc_html | R Documentation |
Main hcslim function. Converts an R list to Highcharts options and return Highcharts JS. See https://github.com/superchordate/hcslim for more detailed documentation and examples.
hc_html(
id,
options,
class = c("chart", "mapChart", "stockChart", "ganttChart"),
loadmapfromurl = NULL,
printjs = FALSE,
copyjs = FALSE,
pretty = printjs || copyjs,
for_widget = FALSE
)
id |
HTML id of the div to put the chart in. |
options |
Options list using standard Highcharts options and hc_markjs to mark Javascript code. |
class |
Type of chart. |
loadmapfromurl |
URL to load your base map from. |
printjs |
Print the generated Javascript. Useful for debugging. |
pretty |
Output readable Javascript. |
for_widget |
Special option for buiding an htmlwidget. Please don't change it. |
Author: Bryce Chamberlain
HTML script tag with the Javascript to create your Highcharts chart.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.