Population pyramid

Is there any way to create a population pyramid using plotly.js? I’ve seen that you can do it in plotly for python:

but I haven’t found anything like this related to js. Is it posible to do it?
Thanks in advance

Here’s the corresponding JS version:


Many thanks! Gracias!