score:0

you tell the annotation plugin that it should link your annotation the an x scale with id: x-axis-1 but in your scales config you only specify 1 x axis with the id of: xaxes.

so to get your annotation to work you need to change the either the id in the annotation or the id of your scale.

annotations: [
      {
        type: 'line',
        scaleid: 'x', must match with correct id of x axis scale
scales: {
  x: { // this is id of scale, must match with scaleid from annotation
    grid: {
      drawonchartarea: false,
      drawticks: true,
      padding: -10,
    },

Related Query

More Query from same tag