Some text

cjs_theme(
  p,
  chart.backgroundColor = NULL,
  chart.borderColor = NULL,
  chart.color = NULL,
  title.text = NULL,
  title.display = FALSE,
  title.align = NULL,
  title.color = NULL,
  title.padding = NULL,
  legend.display = TRUE,
  legend.position = NULL
)

Arguments

p

a chartjs htmlwidget

chart.backgroundColor

background color of the plot

chart.borderColor

border color of the plot

chart.color

text colour for the plot

title.text

plot title

title.display

display the plot. Will automatically be TRUE if title text something other than ''

title.align

Alignment of the title. Options are: 'start', 'center', 'end'

title.color

Color of label

title.padding

Padding to apply around scale labels. Only top, bottom and y are implemented

legend.display

display the legend

legend.position

Position of the legend. Options are: 'top', 'left', 'bottom' 'right'

Value

An object of class htmlwidget