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")

jbkunst/highcharter documentation built on June 13, 2025, 6:59 p.m.