Chartjs-Chart.js annotation plugin โ€“ Box not being displayed correctly

2๐Ÿ‘

โœ…

I think the issue is related to xScaleID and yScaleID values. You set 'x' and 'y' as values but in chart.js 2, the default scales IDs are different. In fact, in the line annotation, you are setting 'y-axis-0'.
That said, I think setting xScaleID: 'x-axis-0' and yScaleID: 'y-axis-0' should work.

Leave a comment