# External HTML Tooltip

This sample shows how to use the external tooltip functionality to generate an HTML tooltip.

const config = {
  type: 'line',
  data: data,
  options: {
    interaction: {
      mode: 'index',
      intersect: false,
    },
    plugins: {
      title: {
        display: true,
        text: 'Chart.js Line Chart - External Tooltips'
      },
      tooltip: {
        enabled: false,
        position: 'nearest',
        external: externalTooltipHandler
      }
    }
  }
};

# Docs

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