Skip to contents

The chart's caption, which will render below the chart and will be part of exported charts. The caption can be updated after chart initialization through the Chart.update or Chart.caption.update methods.

Usage

hc_caption(hc, ...)

Arguments

hc

A highchart htmlwidget object.

...

Options defined in https://api.highcharts.com/highcharts/caption.

Examples

# Explain what to look for rather than repeating the title.
highcharts_demo() |>
  hc_caption(
    text = "Compare July in Tokyo and Santiago to see the seasons reverse.",
    align = "left"
  )