How to use plotly panel in Grafana?

Check this docu out

Something like this ?

let jumbo;

data.series.map((s) => {
 jumbo = s.fields.reduce(function ( a, current ) {
      a[current.name] = current.values.buffer;
      return a;
  }, {});

  Object.assign(jumbo, {type: "box"});
  return jumbo;
});

return {
  data : [jumbo],
  config : {
  displayModeBar: true
  }
}

make sure you alias your fields as follows

min as lowerfence, max as upperfence,mean,std as sd,q1,median, q3