# Events

This sample demonstrates how to use the event hooks to highlight chart elements.

const config = {
  type: 'pie',
  data: data,
  options: {
    plugins: {
      legend: {
        onHover: handleHover,
        onLeave: handleLeave
      }
    }
  }
};

# Docs

Last Updated: 8/3/2022, 12:46:38 PM