hc_elementId: Setting 'elementId'

View source: R/highcharts-api-helpers.R

hc_elementIdR Documentation

Setting elementId

Description

Function to modify the id for the container.

Usage

hc_elementId(hc, id = NULL)

Arguments

hc

A highchart htmlwidget object.

id

A string

Examples


hchart(rnorm(10)) %>%
  hc_elementId("newid")

highcharter documentation built on April 22, 2026, 5:09 p.m.