Shape datasets within a chartjs object.

cjs_scale_shape(p, pointStyles)

Arguments

p

chartjs object

pointStyles

vector of shapes. See cjs_shapes for options. Can be named to match the labels in the datasets. A single unnamed value will shape all datasets. Uses I() if you want points of all datasets a given value to avoid a warning message about value mismatch to number of datasets

Value

An object of class htmlwidget