hc_subtitle: Subtitle options for highcharter objects

View source: R/highcharts-api.R

hc_subtitleR Documentation

Subtitle options for highcharter objects

Description

The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle method.

Usage

hc_subtitle(hc, ...)

Arguments

hc

A highchart htmlwidget object.

...

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

Examples


highchart() |> 
  hc_add_series(
    data = c(7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6),
    type = "column"
  ) |> 
  hc_subtitle(
    text = "And this is a subtitle with more information",
    align = "left",
    style = list(color = "#2b908f", fontWeight = "bold")
  ) 


jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.