Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes. If true, the interaction mode only applies when the mouse position intersects an item on the chart.Ĭan be set to 'x', 'y', 'xy' or 'r' to define which directions are used in calculating distances. Sets which elements appear in the interaction. To configure which events trigger chart interactions, see events. Namespace: options.interaction, the global interaction configuration is at.