Question about plotting panel data?

I raised a similar question here thought it was somehow ignored. :sweat_smile:
It refers to PlotlyJS. I managed to produce a good output, but not without pain.
I now simplified a bit the code with a for loop to produce each graphic in the panel.