Learn R Programming

highcharter (version 0.9.4)

hc_labels: Labels options for highcharter objects

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

hc_labels(hc, ...)

Arguments

hc

A highchart htmlwidget object.

Examples

Run this code
# NOT RUN {
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%"
        )
      )
    )
  )
# }

Run the code above in your browser using DataLab