A short cut to add options to the chart object. The options object is deeply nested and has many options. Rather than write a function capturing all the options (and their children), this function allows you to specify them using a . (dot) notation e.g. elements.line.tension = 0.25 expands to {elements: {line: {tension: 0.25}}}. Thus you must determine the options you desire from the chartjs documention. Any previously set options should be preserved ...

cjs_add_options(p, ...)

Arguments

p

chartjs object

...

any chartjs option, using . notation

Value

An object of class htmlwidget