This function creates a Highchart chart using htmlwidgets. The widget can be rendered on HTML pages generated from R Markdown, Shiny, or other applications.
highchart(
hc_opts = list(),
theme = getOption("highcharter.theme"),
type = "chart",
width = NULL,
height = NULL,
elementId = NULL,
google_fonts = getOption("highcharter.google_fonts")
)
A list
object containing options defined as
https://api.highcharts.com/highcharts/.
A hc_theme
class object-
A character value to set if use Highchart, Highstock or
Highmap. Options are "chart"
, "stock"
and "map"
.
A numeric input in pixels.
A numeric input in pixels.
Use an explicit element ID for the widget.
A boolean value. If TRUE (default), adds a reference to the
Google Fonts API to the HTML head, downloading CSS for the font families
defined in the Highcharts theme from https://fonts.googleapis.com. Set to
FALSE if you load your own fonts using CSS. This option as default is
controlled by "highcharter.google_fonts"
option.