This function creates a Highchart chart using htmlwidgets. The widget can be rendered on HTML pages generated from R Markdown, Shiny, or other applications.
1 2 3 4 5 6 7 8 9 |
hc_opts |
A |
theme |
A |
type |
A character value to set if use Highchart, Highstock or
Highmap. Options are |
width |
A numeric input in pixels. |
height |
A numeric input in pixels. |
elementId |
Use an explicit element ID for the widget. |
google_fonts |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.