alter_legend: Alter the Chart Legend

Description Usage Arguments Value

View source: R/options.R

Description

See here for more detailed documentation: https://www.chartjs.org/docs/latest/configuration/legend.html.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
alter_legend(
  chart,
  ...,
  position = c("top", "left", "bottom", "right"),
  align = c("center", "start", "end"),
  display = TRUE,
  fullWidth = TRUE,
  onClick = NULL,
  onHover = NULL,
  onLeave = NULL,
  reverse = FALSE,
  labels = NULL,
  rtl = FALSE,
  textDirection = NULL
)

Arguments

chart

A chartjs object.

...

Additional named arguments to add to the legend.

position
align
display
fullWidth
onClick, onHover, onLeave
reverse
labels
rtl
textDirection

Value

A modified chartjs object.


KO112/chartjs documentation built on Aug. 6, 2020, 2:35 p.m.