Black Lives Matter. Please consider donating to Black Girls Code today.

Plotly JS Charts arranged in accordion menu

I would like to put my charts in an accordion menu format.
I tried several accordion examples with Plotly JS drawn charts. However, they do not work with it.
Do you have any idea how to put them in an accordion menu?

Speicfy a Codepen. May be i can help you with this issue.