3👍
✅
Here is a working JSFiddle. Only change to the code you posted was random data on those 2 variables and changing the value attribute on annotations to 3
annotations: [{
type: 'line',
mode: 'vertical',
scaleID: 'x-axis-0',
value: 3, // <---
borderColor: 'green',
borderWidth: 3
}]
Source:stackexchange.com