cjsLegend: Add legends

Description Usage Arguments

Description

Add legends

Usage

1
2
cjsLegend(chartjs, position = NULL, onClick = NULL, fullWidth = NULL,
  labels = NULL)

Arguments

chartjs

a chartjs object

position

"top" or "bottom", defaults to "top"

onClick

a JS function as a character

fullWidth

a logical, defaults to TRUE

labels

a list of parameters for the labels :

  • boxWidth an integer, defaults to 40

  • fontColor a character, defaults to "#666"

  • fontFamily a character, defaults to "Helvetica Neue"

  • fontSize an integer, defaults to 12

  • fontStyle a character, defaults to "normal"

  • padding a integer, defaults to 10 (in pixels)


Tutuchan/chartjs documentation built on May 9, 2019, 5:16 p.m.