# 事件

¥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