hc_html: hc_html

View source: R/hc_html.R

hc_htmlR Documentation

hc_html

Description

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.

Usage

hc_html(
  id,
  options,
  class = c("chart", "mapChart", "stockChart", "ganttChart"),
  loadmapfromurl = NULL,
  printjs = FALSE,
  copyjs = FALSE,
  pretty = printjs || copyjs,
  for_widget = FALSE
)

Arguments

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.

Details

Author: Bryce Chamberlain

Value

HTML script tag with the Javascript to create your Highcharts chart.


superchordate/hcslim documentation built on Feb. 20, 2025, 3:28 p.m.