# 自定义工具提示内容

¥Custom Tooltip Content

此示例演示如何使用工具提示回调向工具提示添加其他内容。

¥This sample shows how to use the tooltip callbacks to add additional content to the tooltip.

const config = {
  type: 'line',
  data: data,
  options: {
    interaction: {
      intersect: false,
      mode: 'index',
    },
    plugins: {
      tooltip: {
        callbacks: {
          footer: footer,
        }
      }
    }
  }
};

# 文档

¥Docs