export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> extends ExtendedPlugin<TType, O> {
id: string;
+ /**
+ * The events option defines the browser events that the plugin should listen.
+ * @default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']
+ */
+ events?: (keyof HTMLElementEventMap)[]
+
/**
* @desc Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).
* @param {Chart} chart - The chart instance.