Hi! This used to work in Grafana 9, but when I moved to Grafana 11 it stopped working:
const sData = data.series.map((s) => {
const sDay = s.fields.find((f) => f.name === 'weekNumber').values.buffer;
const sTime = s.fields.find((f) => f.name === 'time').values.buffer;
const sAVRER = s.fields.find((f) => f.name === 'AverageBTsER').values.buffer;
return sTime.map((d, i) => [d, sDay[i], sAVRER[i]]);
});
I tried prepending context.panel to data, with no results…
This didn’t help:
const sData = context.panel.data.series.map((s) => {
const sDay = s.fields.find((f) => f.name === 'weekNumber').values.buffer;
const sTime = s.fields.find((f) => f.name === 'time').values.buffer;
const sAVRER = s.fields.find((f) => f.name === 'AverageBTsER').values.buffer;
return sTime.map((d, i) => [d, sDay[i], sAVRER[i]]);
});
Any ideas?
This is what I get: