Interaction
Namespace: options.interaction
. To configure which events trigger chart interactions, see events.
Mode¶
Sets which elements appear in the interaction. Default 'nearest'
Intersect¶
if true, the interaction mode only applies when the mouse position intersects an item on the chart.
Default true
Axis¶
Can be set to 'x'
, 'y'
, 'xy'
or 'r'
to define which directions are used in calculating distances.
Defaults to 'x'
for 'index'
mode and 'xy'
in dataset and 'nearest'
modes.
IncludeInvisible¶
if true
, the invisible points that are outside of the chart area will also be included when evaluating interactions.
Default false