Javascript – Render annotation in timeseries chart
What's the correct configuration to add a line annotation to a chart.js chart where the x-axis is of the 'timeseries' type? Without the timeseries the following code works as expected. function average(ctx) { const values = ctx.chart.data.datasets[0].data; return values.reduce((a, b)…