# Selecting annotations

const config = {
  type: 'line',
  data,
  options: {
    scales: {
      y: {
        beginAtZero: true,
        min: 0,
        max: 100
      }
    },
    plugins: {
      annotation: {
        enter: enter,
        leave: leave,
        common: {
          drawTime: 'beforeDraw'
        },
        annotations: {
          annotation1,
          annotation2
        }
      }
    }
  }
};
Last Updated: 5/15/2023, 12:03:46 PM