hc_labels: Labels options for highcharter objects

Description Usage Arguments Examples

View source: R/highcharts-api.R

Description

HTML labels that can be positioned anywhere in the chart area. This option is deprecated since v7.1.2. Instead, use annotations that support labels.

Usage

1

Arguments

hc

A highchart htmlwidget object.

...

Arguments defined in https://api.highcharts.com/highcharts/labels.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
highchart() %>%
  hc_add_series(data = sample(1:12)) %>%
  hc_labels(
    items = list(
      list(
        html = "<p>Some <b>important</b><br>text</p>",
        style = list(
          left = "150%",
          top = "150%"
        )
      )
    )
  )

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.