import { ActiveElement , Chart , ChartEvent , ChartOptions } from 'chart.js' ; export const CHART_INTERACTION_FUNCTIONS_EXTENSIONS = { onHover : ( _event , activeElements , _chart , callback ) => { if ( _chart . options . onClick ) { _chart . canvas . style . cursor = activeElements [ 0 ] ? 'pointer' : 'default' ; } if ( callback ) callback ( _event , activeElements , _chart ) ; } , } ;