Basic Chartjs widget

chartjs(
  data = data.frame(),
  ...,
  type = NULL,
  plugins = NULL,
  return_data_ids = FALSE,
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

data

Can be one of: a data.frame, SharedData or list of chartjs options (for a list, see chartjs usage).

...

aesthetic parameters to pass on to chartjs chart types e.g. x, y, group, colors, TODO, ...

type

chartjs type - 'bar', 'scatter', TODO (the others!)

plugins

a list of plugins to include, TODO how make .. include id, and wrap JS code in JS()

return_data_ids

development used with a functions in chartjs.js to return dataset ids in Shiny

width, height

width and height in pixels (optional, defaults to automatic sizing)

elementId

id of the widget created with this function

Value

An object of class htmlwidget