score:0

you can draw it before the line chart with drawtime: 'beforedatasetsdraw'

score:0

managed to do this with following code:

const plugins = [
  {
   beforedraw: (chartinstance, easing) => {
   const ctx = chartinstance.chart.ctx;
   ctx.fillstyle = "lightgreen";
   ctx.fillrect(30, 200, 955, 50);
  },
 },
];
//...
<line
    data={data}
    plugins={plugins}
  />

Related Query

More Query from same tag