powered by
Chart's title
ax_title( ax, text = NULL, align = NULL, margin = NULL, offsetX = NULL, offsetY = NULL, floating = NULL, style = NULL, ... )
An apexchart()
apexchart()
htmlwidget object.
htmlwidget
An apexchart() htmlwidget object.
Text to display as a title of chart.
Alignment of subtitle relative to chart area. Possible Options: "left", "center" and "right".
"left"
"center"
"right"
Numeric. Vertical spacing around the title text.
Numeric. Sets the left offset for subtitle text.
Numeric. Sets the top offset for subtitle text
Logical. The floating option will take out the subtitle text from the chart area and make it float on top of the chart.
List with two items: fontSize (Font Size of the title text) and color (Fore color of the title text).
fontSize
color
Additional parameters.
data("economics", package = "ggplot2") apex( data = economics, mapping = aes(x = date, y = uempmed), type = "line" ) %>% ax_title( text = "Median duration of unemployment, in weeks" )
Run the code above in your browser using DataLab