Used for tooltip position mode setting. Should hover show a single data point, the various groups (if any) at a particular x value, or the dataset of the datapoint?

cjs_interaction_mode(p, mode = c("point", "index", "dataset"))

Arguments

p

a chartjs htmlwidget

mode

type of interaction to allow

Value

An object of class htmlwidget